TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
asupriya
- Advanced
- Posts: 179
- Joined: Mon Dec 01, 2008 12:00 am
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
- 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