Page 1 of 1

set polar chart axes maximum value

Posted: Mon Feb 16, 2009 1:13 am
by 13051032
I am updating a polar chart with polarBar series realtime with two points (the origin and the value and angle). I know the maximum value that can be reached on a given polar chart and like to set the axis maximum to that value so that the polar chart doesn't update these values dynamically. I tried the following, but the chart still dynamically changes the max. value of the axes based on the realtime value ( though the realtime value is less than the maximum set value).

The code i am using to set the max is:

Code: Select all

With MyPolarChart
                .Axes.Left.Maximum = 1000
                .Axes.Bottom.Maximum = 1000
                .Axes.Right.Maximum = 1000
                .Axes.Top.Maximum = 1000
End With
Please suggest something.

Posted: Mon Feb 16, 2009 10:31 am
by 10050769
Hi asupriya,


if you set the max value you need add next code in your solution:

Code: Select all

With TChart1
//new:
       .Axes.Left.AutomaticMaximum = False
       .Axes.Bottom.AutomaticMaximum = False
       .Axes.Right.AutomaticMaximum = False
       .Axes.Top.AutomaticMaximum = False
//Your code:
       .Axes.Left.Maximum = 1000
       .Axes.Bottom.Maximum = 1000
       .Axes.Right.Maximum = 1000
       .Axes.Top.Maximum = 1000
End With