Hi,
Is it possible to set the YAxis Range Maximum and YAxis Range Minimum when the RangeType is set to Automatic?
Regards,
Kumar
Kumar,
Could you explain in more detail what are you trying to achieve? The purpose of the flag is to tell the chart to calculate these values for you.
-Graham
Hi Graham,
This is the requirement in my application:
I have set the RangeType of YAxis to Automatic for Stack Charts.
But we would still want the end user to be able to change the Ranges using a property grid of charts that we expose in our application.
For example if the first time the chart is drawn with the Y Axis minimum range as 0 and maximum range as 50. After that we would still like the user to be able to change the maximum range and the minimum range if he wishes to.
Is this possible?
Sounds like you are going to have to do something to determine what the values of the axis were under automatic so that you can set those in the appearance when changing the range type to custom. One way of going about that would be something like this:
Axis yAxis = ((Axis)((Layer)(ultraChart1.Layer["Default"])).Grid["Y"]); double minValue = (double)yAxis.Minimum; double maxValue = (double)yAxis.Maximum;
etc.