Page 1 of 1
Circular gauge ticks frequency
Posted: Fri Nov 08, 2013 12:15 pm
by 15654539
By default I have a tick every 10 values, but how can I change it?
Thanks
Re: Circular gauge ticks frequency
Posted: Fri Nov 08, 2013 4:59 pm
by 10050769
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,
Re: Circular gauge ticks frequency
Posted: Fri Nov 08, 2013 5:08 pm
by 15654539
Thanks!
Re: Circular gauge ticks frequency
Posted: Mon Nov 11, 2013 11:36 am
by 15654539
It runs with CircularGauges and LinearGauges but not with basic Gauges. How can I do it in them?
Thanks
Re: Circular gauge ticks frequency
Posted: Mon Nov 11, 2013 4:27 pm
by 10050769
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,
Re: Circular gauge ticks frequency
Posted: Tue Nov 12, 2013 3:24 pm
by 15654539
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
Re: Circular gauge ticks frequency
Posted: Thu Nov 14, 2013 5:17 pm
by 10050769
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,