Page 1 of 1

How change background of a numeric gauge

Posted: Thu Mar 20, 2014 11:17 am
by 15654539
I have changed the facebrush color to red, but I didn't find how to change the background color of the number

Thanks

Re: How change background of a numeric gauge

Posted: Fri Mar 21, 2014 1:17 pm
by Christopher
wakeup wrote:I have changed the facebrush color to red, but I didn't find how to change the background color of the number
Try:

Code: Select all

    private void InitializeChart()
    {
      NumericGauge series = new Steema.TeeChart.Styles.NumericGauge(tChart1.Chart);
      series.FillSampleValues();

      series.FaceBrush.Gradient.Visible = false;
      series.FaceBrush.Color = Color.Red;

      foreach (Marker item in series.Markers)
      {
        item.UsePalette = false;
        item.Shape.Gradient.Visible = false;
        item.Shape.Color = Color.Red;
      }
    }

Re: How change background of a numeric gauge

Posted: Fri Mar 21, 2014 4:31 pm
by 15654539
It doesn't run. I don't know why is it yellow...

Is it possible to chanche from charteditor?

Re: How change background of a numeric gauge

Posted: Mon Mar 24, 2014 12:10 pm
by Christopher
wakeup wrote:It doesn't run. I don't know why is it yellow...
The code I posted works as expected using TeeChart v.4.1.2014.02240 - which version are you using?

Re: How change background of a numeric gauge

Posted: Mon Mar 24, 2014 12:33 pm
by 15654539
Sorry, you are right, it runs. Thanks