C1Gauge Background Color

Posted by: jgennari on 10 September 2017, 11:41 am EST

  • Posted 10 September 2017, 11:41 am EST

    I don't see any option (in help, or otherwise) to change the background color of the viewport. Is this a limitation of the trial or am I missing a simple setting?
  • Replied 10 September 2017, 11:41 am EST

    Hello,
    There is no Background property in the C1Gauge for ASP.NET, but you can still achieve a background color by using FaceShapes. The following code should be enough to give you a yellow background on the C1Gauge:

    var faceBackground = new C1.Web.UI.Controls.C1Gauge.C1GaugeRectangle();
    faceBackground.Filling.Color = Color.Yellow;
    C1Gauge1.FaceShapes.Add(faceBackground);


    Thanks,
    -Raleigh
  • Replied 10 September 2017, 11:41 am EST

    But the viewport comes automatically with a gray color, do I need to create a rectangle to fill the view port for every gauge?
  • Replied 10 September 2017, 11:41 am EST

    Hello jqennari,
    You should not need to do this for each ViewPort, just one time for each C1Gauge. If you have any issues, please let me know.

    Thanks,
    -Raleigh
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels