Page 1 of 1

Help with Gauge Control

Posted: Thu Jan 24, 2008 8:41 am
by 9640778
Please can you tell me how to set the following in code.

I have a gauge control on my page.

1) I would like to set the font for the numbering across the axes to be larger.
2) I would like to move the numbers further down.
3) I would like to set the background to transparent.

I have noticed a bug where by if you increase the Gauge1.TotalAngle = 120 the numbering across the axis actualy runs into the axis itself is there a work around to stop this happening.

Posted: Thu Jan 24, 2008 10:35 am
by narcis
Hi Hidayah,
1) I would like to set the font for the numbering across the axes to be larger.
You need to use this:

Code: Select all

		gauges1.GetVertAxis.Labels.Font.Size = 12;
2) I would like to move the numbers further down.
I don't know what do you exactly mean here. As you can see in the code line above, chart's vertical axis needs to be used so maybe reading Tutorial 4 - Axis Control may help you on that. If this doesn't help please give us some more details about what you are trying achieve.
3) I would like to set the background to transparent.
Try using this:

Code: Select all

		WebChart1.Chart.Panel.Transparent = true;
I have noticed a bug where by if you increase the Gauge1.TotalAngle = 120 the numbering across the axis actualy runs into the axis itself is there a work around to stop this happening.
I've been able to reproduce this and added the defect (TF02012769) to our bug list to be fixed for future releases. If you are interested in using gauges I strongly recommend you to have a look at TeeChart for .NET v3 where new and nicer gauges styles have been included as you can see in the Gauges gallery. Fully functional v3's evaluation version may be obtained here.