Circular gauge ticks frequency

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Circular gauge ticks frequency

Post by acastro » Fri Nov 08, 2013 12:15 pm

By default I have a tick every 10 values, but how can I change it?

Thanks

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

Re: Circular gauge ticks frequency

Post by Sandra » Fri Nov 08, 2013 4:59 pm

Hello wakeup,

You an change the increment of the circular gauge axis, as do in next line of code:

Code: Select all

      circulargauge1.Axis.Increment = 5; 

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

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: Circular gauge ticks frequency

Post by acastro » Fri Nov 08, 2013 5:08 pm

Thanks!

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: Circular gauge ticks frequency

Post by acastro » Mon Nov 11, 2013 11:36 am

It runs with CircularGauges and LinearGauges but not with basic Gauges. How can I do it in them?

Thanks

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

Re: Circular gauge ticks frequency

Post by Sandra » Mon Nov 11, 2013 4:27 pm

Hello wakeup,

With basic Gauges, please try next:

Code: Select all

   Steema.TeeChart.Styles.Gauges gauge = new Steema.TeeChart.Styles.Gauges(tChart1.Chart);
      tChart1.Axes.Left.Increment = 5; 

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

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: Circular gauge ticks frequency

Post by acastro » Tue Nov 12, 2013 3:24 pm

It works but it is a bit strange it you have several serie in the same chart

If you change the increment of a circular gauge
circulargauge1.Axis.Increment = 5;
it changes also the increment of the gauges.

And if you change the increment of a basic gauge
tChart1.Axes.Left.Increment = 5;
it changes alto the increment in the circular gauges of the same chart

But if you change the increment of a horizontal gauge and vertical gauge, it doesn't affect to the other series in the same chart.

I think it is a bit anoying for the user... Or have I misunderstood something?

Thanks

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

Re: Circular gauge ticks frequency

Post by Sandra » Thu Nov 14, 2013 5:17 pm

Hello wakeup,

I apologize with you, because I forgot tell you is possible use GetVertAxis() to change the increment for Basic Gauge, Circular and Linear Gauge.
On the other hand, Gauge series always works with vertical Axis, the other axes never are used in this type of Series.

Could you tell us if next code works if you want?

Code: Select all

        private void Form1_Load(object sender, EventArgs e)
        {
            Steema.TeeChart.Styles.Gauges  gauge = new Steema.TeeChart.Styles.Gauges(tChart1.Chart);
            gauge.GetVertAxis.Increment = 1;
        }
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

Post Reply