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 |