Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
425
Setting Fuel Gauge Values
posted

I am using the "Fuel Gauge" preset on a gauge. What I want to do is have one needle represent the total sales on a particular date this year, and the other needle represent the total sales on the same date last year. What properties do I set in order to change the needle positions to represent the respective sales totals for this year and last year? For example what if sales on 03/12/2008 were $30,000.00 and sales on 03/12/2009 were $33,000.00?

Parents
No Data
Reply
  • 28496
    Verified Answer
    Offline posted

    the fuelgauge preset is made up of two radial gauges, so to set the value of both needles is like this:

    ((RadialGauge)this.ultraGauge1.Gauges[0]).Scales[0].Markers[0].Value = 30000;

    ((RadialGauge)this.ultraGauge1.Gauges[1]).Scales[0].Markers[0].Value = 33000;

Children