Axis range and step at runtime


https://www.nevron.com/Forum/Topic12487.aspx
Print Topic | Close Window

By rich dudley - 6 Years Ago


Using the graph above as an example.  The right axis is auto ranging and the left axis has a manually defined range and step based on the values of the right axis. Is there a way to determine what the auto range of the right axis is going to be after it is created? Ideally I would like to know the Min and Max value, and the step it is using, for example the graph above would be 350, 600, and 50.
By Nevron Support - 6 Years Ago
Hi Rich,
You can get the axis range after the chart is recalculated for a given size (that's because the automatic step is calculated depending on the range of the data and the size of the axis on the screen/printer etc.):
nChartControl1.RecalcLayout();
NRange1DD axisRange = nChartControl1.Charts[0].Axis(StandardAxis.PrimaryY).Scale.RulerRange;
Currently there is no way to determine the automatic step.