ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  How to set the Y (or X) axis to a fixed range?
Posted by Brad Kimble on Sep-29-2024 05:53
I can't find how to set the Y axis to a fixed range. I have the axis:
    Axis* pYAxis = c->yAxis();
When I set my data values from 0 - 100, (example: 0, 25, 50, 75, 100) the y axis goes from 0 to 120. I want to have the max Y values on the axis be 100. (I know my values will not go above 100, it is actually a percent converted to a number 0-100).
We also have a couple other situations where we want the X axis a fixed range, regardless of the current data min/max.
I looked at most of the methods for axis and did not see anything obvious, but I am hoping I just missed something. This is possible as I have only been looking into it for a few days.

Any hints would be appreciated.

Regards,
Brad Kimble

  Re: (Resolved) How to set the Y (or X) axis to a fixed range?
Posted by Brad Kimble on Sep-29-2024 06:15
I posted too soon. I found the answer with using AngularAxis.setLinearScale(...). I originally thought it was for literally setting a scaling value so did not look at it at first.

Regards,
Brad Kimble