[C#]
double xStart = chart.PointToValue(chart.PrimaryAxis, mousePointStart);
DateTime startDate = DateTime.FromOADate(xStart); |
[C#]
Point mousePointStart = new Point(e.ZoomRect.Left - chart.SeriesClipRect.Left,
e.ZoomRect.Top - chart.SeriesClipRect.Top);
Point mousePointEnd = new Point(e.ZoomRect.Right - chart.SeriesClipRect.Left,
e.ZoomRect.Top - chart.SeriesClipRect.Top); |