This is a migrated thread and some comments may be shown as answers.

Change Units

1 Answer 83 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
Jeremy
Top achievements
Rank 1
Jeremy asked on 26 Aug 2013, 06:08 PM
Can you show floating point values on a gauge?

I have this:
    <telerik:RadRadialGauge Width="300" Height="300" >
        <telerik:RadialScale Min="1" Max="2.5" >
            <telerik:NumericScale Min="1" Max="2.5"   />
            <telerik:RadialScale.Indicators>
                <telerik:Needle Value="1.5" />
                <telerik:Marker Value="2.5" />
            </telerik:RadialScale.Indicators>
        </telerik:RadialScale>
    </telerik:RadRadialGauge >

It isn't pretty. It displays 4 1s, 6 2s and 1 3.

That doesn't make any sense.

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 29 Aug 2013, 02:46 PM
Hi Jeremy,

You can use the RadialScale.LabelFormat property to set the format of labels. Also you can use the MajorTickStep property to set a length of the single tick interval in the scale units.
The sample code is below.
<telerik:RadRadialGauge>
    <telerik:RadialScale Min="1" Max="2.5"
                         MajorTickStep="0.25"
                         LabelFormat="{}{0:F2}" >
    </telerik:RadialScale>
</telerik:RadRadialGauge>

For more information you can take a look at the following documentation topics:
http://www.telerik.com/help/silverlight/radgauge-features-labels-basics.html
http://www.telerik.com/help/silverlight/radial-scale-tick-marks.html

Regards,
Andrey Murzov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Gauges
Asked by
Jeremy
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or