NumericGauge Font color

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
losvil
Newbie
Newbie
Posts: 12
Joined: Mon Sep 20, 2010 12:00 am

NumericGauge Font color

Post by losvil » Thu Mar 10, 2011 10:22 am

Hello,

Is it possible change the look of NumericGauge into CircularGauge ?
I will change the digit font color and font background color.

Another question
Using CircularGauge with min=0 and max=5, the labels (0,1,2,3,4,5) are not visible. Only label 0 is printed.

Best regards
losvil

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: NumericGauge Font color

Post by Sandra » Thu Mar 10, 2011 12:49 pm

Hello losvil,
Is it possible change the look of NumericGauge into CircularGauge ?
I will change the digit font color and font background color.
If you want change the digit font color and font background color you must put value of ValueMarker.UsePalette to false, and change properties using ValueMarker.Shape and FaceBrush as do in next example:

Code: Select all

          private void InitializeChart()
        {
           Steema.TeeChart.Styles.CircularGauge series1 = new Steema.TeeChart.Styles.CircularGauge(tChart1.Chart);
            series1.NumericGauge.Visible = true;
            //Font 
            series1.NumericGauge.ValueFormat = "###.0";
            series1.NumericGauge.ValueMarker.UsePalette = false;
            series1.NumericGauge.ValueMarker.Shape.Font.Name = "Times New Roman";
            series1.NumericGauge.ValueMarker.Shape.Font.Size = 14;
            series1.NumericGauge.ValueMarker.Shape.Font.Color = Color.Lime;
            //Background
            series1.NumericGauge.ValueMarker.Shape.Color = Color.Orange;
            series1.NumericGauge.FaceBrush.Gradient.Visible = false;
            series1.NumericGauge.FaceBrush.Color = Color.Orange;
        }
Another question
Using CircularGauge with min=0 and max=5, the labels (0,1,2,3,4,5) are not visible. Only label 0 is printed.
You only must change the value of properties of Series Minimum and Maximum. You can do something as next:

Code: Select all

           //ticks
            series1.Value = 1;
            series1.Minimum = 0;
            series1.Maximum = 5;
            series1.Axis.Increment = 1;
I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / 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

losvil
Newbie
Newbie
Posts: 12
Joined: Mon Sep 20, 2010 12:00 am

Re: NumericGauge Font color

Post by losvil » Thu Mar 10, 2011 2:40 pm

Many thanks for the quick respose.

regars
losvil

Post Reply