Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2145
Setting a dynamic maximum range but with a fixed minimun range.
posted

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