Hi Shweta,
The following code shows how to
zoom in to a specified range on a particular axis:
NChart chart = nChartControl1.Charts[0];
NBarSeries bar = new NBarSeries();
chart.Series.Add(bar);
bar.
DataLabelStyle.Visible = false;
bar.Values.Add(10);
bar.Values.Add(20);
bar.Values.Add(30);
// make sure all internal values are updated
nChartControl1.RecalcLayout();
//
zoom in
NNumericAxisPagingView view = new NNumericAxisPagingView();
chart.Axis(StandardAxis.PrimaryX).PagingView = view;
view.
ZoomIn(new NRange1DD(0.5, 1.5), 0);
Zooming this way (instead of using the NRangeAxisView) ensures you can also activate scrolling/panning later. We hope this helps - let us know if you have any questions.
Best Regards,
Nevron Support Team