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
NumericGauge Font color
Re: NumericGauge Font color
Hello losvil,
I hope will helps.
Thanks,
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:Is it possible change the look of NumericGauge into CircularGauge ?
I will change the digit font color and font background color.
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;
}
You only must change the value of properties of Series Minimum and Maximum. You can do something as next: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.
Code: Select all
//ticks
series1.Value = 1;
series1.Minimum = 0;
series1.Maximum = 5;
series1.Axis.Increment = 1;
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: NumericGauge Font color
Many thanks for the quick respose.
regars
losvil
regars
losvil