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

Displaying decimals in radial gauge

2 Answers 149 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
macky
Top achievements
Rank 1
macky asked on 03 Aug 2010, 07:49 PM
Hi,

Due to the min and max numbers I am providing (values are not far apart), I get the same number displayed twice on the radial gauge. Is there a way to show the decimal value to 1 decimal place for the numbers displayed, or can I limit the amount of numbers displayed (i.e. my starting number is 54 and ending is 63. Currently I have 11 numbers displayed on the gauge. Is there a way to reduce the amount of numbers displayed).

Thanks,
Mac
 

Please ignore this post... I've got the solution.

2 Answers, 1 is accepted

Sort by
0
Mukesh
Top achievements
Rank 1
answered on 15 Apr 2013, 12:29 PM
Hi,
I am facing similar issue on gauges. I have set Max=1, Min=-1 and showing 5 major ticks. so the readings on UI should be displayed as -1, -0.5, 0, 0.5 and 1. But it shows indicators as  -1, -1, 0, 1 and 1

could you please share the solution you have got.
0
Mukesh
Top achievements
Rank 1
answered on 15 Apr 2013, 12:38 PM
I have got following solution

<
telerik:RadGauge Width="300" Height="300">
    <telerik:RadialGauge>
        <telerik:RadialScale x:Name="radialScale"
                             Min="0" Max="1.2"
                             MajorTickStep="0.1">
            <telerik:RadialScale.Label>
                 <telerik:LabelProperties Format="{}{0:F1}" />
             </telerik:RadialScale.Label>
             <telerik:IndicatorList>
                 <telerik:Needle x:Name="needle"
                                 IsAnimated="True"
                                 Value="0.75"/>
             </telerik:IndicatorList>
         </telerik:RadialScale>
     </telerik:RadialGauge>
</telerik:RadGauge>

Tags
General Discussions
Asked by
macky
Top achievements
Rank 1
Answers by
Mukesh
Top achievements
Rank 1
Share this question
or