Help with Gauge Control

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Hidayah
Newbie
Newbie
Posts: 7
Joined: Mon Mar 27, 2006 12:00 am
Contact:

Help with Gauge Control

Post by Hidayah » Thu Jan 24, 2008 8:41 am

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jan 24, 2008 10:35 am

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.
Best Regards,
Narcís Calvet / 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