Hi,
What I am trying to do is to have 2 axis on a graph so they can be compared against one and another the maximum can be any number but the minimun should be zero so that a user can easily see the differences and to what extent.
Now I know there is:
yAxis.RangeType = AxisRangeType.Custom yAxis.RangeMin = 0 yAxis.RangeMax = 100
But my problem is I do not know what the RangeMax would be.
If I simply use:
yAxis.RangeType = AxisRangeType.Automatic
Then the minimun would not always be zero as I want, what I really want to say is:
yAxis.RangeMin = 0 yAxis.RangeMax = AxisRangeType.Automatic
But I can't figure out a way of doing that short of interigating both datasets for the highest value of both.
Any ideas, if its not possible could I make this a feature request?
Alex
Can you please tell me the way to set the maximum value dynamically?
One more problem I am facing is with the follwing code, I am not able to see 0 value on the Y axis.
axis.RangeType = AxisRangeType.Custom;
axis.RangeMin = -500;
axis.RangeMax = 4000;
axis.TickmarkInterval = 500;
What should be doen in order to display 0 on the Y Axis.
Thanks and Regards
Weird, I never got the e-mail saying that a reply had been made to this, I normally do.
Anyway, I have managed to solve this issue my self by doing a bit of code to get the highest value brought out in my dataset and then setting the maximum of the scale to that value and the minimun value to 0.
Thanks anyway,
Alex.
Hello Alex,
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
Would you be able to provide an image or a mock-up of what you're trying to accomplish?