CircularGauge cannot change Ticks

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Rick Booij
Newbie
Newbie
Posts: 2
Joined: Wed Jan 26, 2011 12:00 am

CircularGauge cannot change Ticks

Post by Rick Booij » Fri Feb 25, 2011 10:25 am

Hi,

I have a circular gauge which contains values between -3 and 3 with the 0 in the top of the gauge. My problem is that the first major tick and label display -3 at the beginning of the chart. But i would like to add Ticks (incl. lables) at the values -2, -1, 0, 1, 2 and 3 as well.

How can i achieve this?

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

Re: CircularGauge cannot change Ticks

Post by Sandra » Fri Feb 25, 2011 12:14 pm

Hello Rick,

I have made a simple example where is shown, in CircularGauge, values from -3 to 3 and I think you can do something as next:

Code: Select all

        private void InitializeChart()
        {
           Steema.TeeChart.Styles.CircularGauge series1 = new Steema.TeeChart.Styles.CircularGauge(tChart1.Chart);
            series1.Value = 2;
            series1.Maximum = 3;
            series1.Minimum = -3;
            series1.Axis.Increment = 1;
        }
Could you confirm us if previous code works as you want?

I hope will helps.

Thanks,
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

Rick Booij
Newbie
Newbie
Posts: 2
Joined: Wed Jan 26, 2011 12:00 am

Re: CircularGauge cannot change Ticks

Post by Rick Booij » Fri Feb 25, 2011 12:27 pm

Yes, this was the perfect solution.

Thank you very much!

Post Reply