Hi Jacky,
The following code snippet shows how to achieve these tasks:
NChart chart = nChartControl1.Charts[0];
NBarSeries bar = new NBarSeries();
bar.Values.Add(10);
bar.Values.Add(20);
bar.Values.Add(30);
chart.Series.Add(bar);
// setting axis min to 15
chart.Axis(StandardAxis.PrimaryY).View = new NRangeAxisView(new NRange1DD(15, 0), true, false);
// turning off tick rounding
NStandardScaleConfigurator scaleY = chart.Axis(StandardAxis.PrimaryY).ScaleConfigurator as NStandardScaleConfigurator;
scaleY.RoundToTickMin = false;
scaleY.RoundToTickMax = false;
// getting axis range
nChartControl1.Document.Calculate();
nChartControl1.Document.RecalcLayout(nChartControl1.View.Context);
NRange1DD viewRange = chart.Axis(StandardAxis.PrimaryY).ViewRange;
Let us know if you meet any problems.
Best Regards,
Nevron Support Team