Hi Frank,
You can intercept the data zoom end drag event and get the axis ruler range from there - for example:
private void Form1_Load(object sender, EventArgs e)
{
NCartesianChart chart = (NCartesianChart)nChartControl1.Charts[0];
NBarSeries bar = new NBarSeries();
bar.Values.Add(10);
bar.Values.Add(20);
bar.Values.Add(30);
chart.Series.Add(bar);
chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator = new NLinearScaleConfigurator();
NRangeSelection rs = new NRangeSelection();
chart.RangeSelections.Add(rs);
nChartControl1.Controller.Tools.Add(new NSelectorTool());
NDataZoomTool dzt = new NDataZoomTool();
dzt.EndDrag += new EventHandler(dzt_EndDrag);
nChartControl1.Controller.Tools.Add(dzt);
}
void dzt_EndDrag(object sender, EventArgs e)
{
NCartesianChart chart = (NCartesianChart)nChartControl1.Charts[0];
nChartControl1.Document.Calculate();
nChartControl1.Document.RecalcLayout(nChartControl1.View.Context);
NRange1DD xAxisRange = chart.Axis(StandardAxis.PrimaryX).Scale.RulerRange;
textBox1.Text = "X: " + xAxisRange.Begin.ToString() + " Y: " + xAxisRange.End.ToString();
}
Hope this helps - let us know if you meet any problems.
Best Regards,
Nevron Support Team