Page 1 of 1

CircularGauge cannot change Ticks

Posted: Fri Feb 25, 2011 10:25 am
by 15658443
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?

Re: CircularGauge cannot change Ticks

Posted: Fri Feb 25, 2011 12:14 pm
by 10050769
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,

Re: CircularGauge cannot change Ticks

Posted: Fri Feb 25, 2011 12:27 pm
by 15658443
Yes, this was the perfect solution.

Thank you very much!