Profile Picture

How to set axis range?

Posted By Kevin Harrison 13 Years Ago
Author
Message
Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Kevin,

You have to set the View object in this case - for example:

someChart.Axis(StandardAxis.PrimaryY).View = new NRangeAxisView(new NRange1DD(0, 100), true, true);

will limit the axis to the range 0, 100. You may also consider to turn off tick rounding for the scale.

Let us know if you meet any problems.



Best Regards,
Nevron Support Team



Kevin Harrison
Posted 13 Years Ago
View Quick Profile
Forum Guru

Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 52, Visits: 1

We frequently have a situation where we plot a line on the left y-axis and a bar on the right y-axis, and we want to set the bar scale so that the bars do not occupy the full range of the displayed axis; e.g. the bar values may range form 0 to 50, but we want the right y-axis scale to be 0 to 100, so that the bars and line do not overlap.

How do I achieve this? I can't seem to find a simple way of setting the axis scale independent of the data. There is an example that shows how to get the axis range but not how to set it.

Thanks

Kevin





Similar Topics


Reading This Topic