Jump to content
Software FX Community

Autoscale


User (Legacy)

Recommended Posts

Is there a quick way of making an autoscaled axis maximum equal to, say,

110% of the maximum series value, rather than exactly equal to it? Or do I

have to do this manually?

eg, if the the maximum data value is 200, the autoscaled y axis maximum is

set to 200. For aesthetic reasons I want it to be 220, but I'm too lazy to

search through the data to find the max value.

cheers,

Rob

Link to comment
Share on other sites

The AdjustScale method will adjust the Max value to the nearest "round"

number, starting with the data max.

There is no way you ca specify a percentage like you are asking, however

implementing this in your app is trivial, simply add this to your code right

after setting the data to the chart:

chart.AxisY.ResetScale();

<code that sets data goes here>

chart.AxisY.Max = 1.1*chart.AxisY.Max;

--

FP

Software FX

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...