Page 1 of 1

NumericGauge Font color

Posted: Thu Mar 10, 2011 10:22 am
by 15657281
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

Re: NumericGauge Font color

Posted: Thu Mar 10, 2011 12:49 pm
by 10050769
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,

Re: NumericGauge Font color

Posted: Thu Mar 10, 2011 2:40 pm
by 15657281
Many thanks for the quick respose.

regars
losvil