set polar chart axes maximum value

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
asupriya
Advanced
Posts: 179
Joined: Mon Dec 01, 2008 12:00 am

set polar chart axes maximum value

Post by asupriya » Mon Feb 16, 2009 1:13 am

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.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Post by Sandra » Mon Feb 16, 2009 10:31 am

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
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply