Profile Picture

Axis range and step at runtime

Posted By rich dudley 6 Years Ago
Author
Message
rich dudley
Question Posted 6 Years Ago
View Quick Profile
Forum Guru

Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)Forum Guru (51 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 33, Visits: 76


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.


Nevron Support
Posted 6 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 3,039, Visits: 3,746
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.


Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic