Axis range and step at runtime


Author
Message
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
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


rich dudley
rich dudley
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
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.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search