Change Units

2 posts, 0 answers
  1. Jeremy
    Jeremy avatar
    1 posts
    Member since:
    Aug 2013

    Posted 26 Aug 2013 Link to this post

    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.
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 29 Aug 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top