Syn pan in TypeScript Chart control

18 Nov 20181 minute to read

Using the chartMouseMove event, you can achieve the synchronized panning between multiple charts.

To make a synchronized panning chart, follow the given steps:

Step 1:

Initially create two charts, and enable zoomSettings for both charts.

To use the chartMouseMove event, assign the first chart’s zoomFactor and zoomPosition values to the second chart. Now, pan the first zoomed chart, and then the second chart will be panned automatically based on zoomFactor and zoomPosition.

The following code sample demonstrates the output.