Hi Kevin,
The scale range is recalculated when the control is recalculated. You can force recalculation when you receive the EndZoom event and then retrieve the range - for example:
private void Form1_Load(object sender, EventArgs e)
{
NCartesianChart chart = (NCartesianChart)nChartControl1.Charts[0];
chart.RangeSelections.Add(new NRangeSelection());
NBarSeries bar = new NBarSeries();
bar.Values.Add(10);
bar.Values.Add(20);
bar.Values.Add(20);
chart.Series.Add(bar);
nChartControl1.Controller.Tools.Add(new NPanelSelectorTool());
NDataZoomTool dataZoomTool = new NDataZoomTool();
dataZoomTool.EndDrag += DataZoomTool_EndDrag;
nChartControl1.Controller.Tools.Add(dataZoomTool);
}
private void DataZoomTool_EndDrag(object sender, EventArgs e)
{
NDataZoomTool dataZoomTool = (NDataZoomTool)sender;
nChartControl1.RecalcLayout();
NRange1DD range = nChartControl1.Charts[0].Axis(StandardAxis.PrimaryX).Scale.RulerRange;
Trace.WriteLine("X:" + range.Begin.ToString() + ", Y:" + range.End.ToString());
}
Let us know if you meet any problems or have any questions.
Best Regards,
Nevron Support Team