Page 1 of 1

Change first tick value: Circular gauge

Posted: Wed Nov 16, 2011 6:43 pm
by 13049461
Hi,

Is there a way I could change the Minimum Tick value on the circular gauge?
I am using VB.net.

For example, I would like my gauge to have a range from -15 to 115, but I want the first tick value start at 0, and then increment every 20.
What i have now is pictured on the left, and what I would like to have is pictured on the right. (just edited the first in paint)
tchart1.png
tchart1.png (34.51 KiB) Viewed 3859 times
Thanks for the help,
Bryan

Re: Change first tick value: Circular gauge

Posted: Fri Nov 18, 2011 9:44 am
by 10050769
Hello Bryan,

I recommend you, change values Minimum and Maximum of your gauge Series and modify the Increment of Left axis as do in next simple code:

Code: Select all

        private void InitializeChart()
        {
            Steema.TeeChart.Styles.CircularGauge gauges1 = new CircularGauge(tChart1.Chart);
            gauges1.Minimum = -15;
            gauges1.Maximum = 115;
 private void button2_Click(object sender, EventArgs e)
        {
            tChart1.Axes.Left.Increment = 20;
            (tChart1[0] as Steema.TeeChart.Styles.CircularGauge).Minimum = 0;
            
        }
        }
Can you please, tell us if previous code works as you expected?

I hope will helps.

Thanks,

Re: Change first tick value: Circular gauge

Posted: Fri Nov 18, 2011 1:11 pm
by 13049461
No, That only set the new minimum value to 0, so the whole gauge just starts at 0 instead of starting at -15

I have solved this by just disabling the Automatic Ticks and Labels, and drawing my own on the AfterDraw Method.

Thanks for the response, you can consider this topic solved.

-Bryan

Re: Change first tick value: Circular gauge

Posted: Mon Nov 21, 2011 2:03 pm
by 10050769
Hello Bryan,

Thanks for your information. I am glad that you can find a solution for your problem.

Thanks,