Hi Reihaneh,
Greetings from Syncfusion, if you want two charts zoom simultaneously, you can user our ZoomPosition and ZoomFactor properties of the axis. We have achieved your requirement by syncing the ZoomPosition and ZoomFactor of two chart axes using ZoomDelta event as like in below code snippet.
Code Snippet C#
|
Chart1.ZoomDelta += Chart1_ZoomDelta;
Chart2.ZoomDelta += Chart2_ZoomDelta;
Chart1.ResetZoom += Chart1_ResetZoom;
Chart2.ResetZoom += Chart2_ResetZoom;
private void Chart2_ZoomDelta(object sender, ChartZoomDeltaEventArgs e)
{
Chart1.PrimaryAxis.ZoomPosition = e.CurrentZoomPosition;
Chart1.PrimaryAxis.ZoomFactor = e.CurrentZoomFactor;
} |
We have also prepared as sample for your requirement and it can be downloaded from the link below.
Hope this helps.
Thanks,
Michael