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

RadialGauge scale issue.

1 Answer 93 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 01 Feb 2010, 06:24 PM

Using a radial gauge that has a scale of 0 to 12, and a radialrange of 10 to 12. I get the following problems. The needle is not pointing to the right tick...is always off...like 4 will point to almost 4.5. Also the radialrange is off as well, it start around 10.3 instead of 10.

Anybody has seen this kind of issue? This is with 2009 Q3 SP1


<

 

telerik:RadGauge Width="150" Height="150" Margin="628.459,0,575.115,71.681" Name="radGauge1" VerticalAlignment="Bottom" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">

 

 

 

<telerik:RadialGauge>

 

     

<telerik:RadialScale Name="radialScale" Min="0" Max="12">

 

         

<telerik:IndicatorList>

 

            

<telerik:Needle x:Name="needle" Value="4"/>

 

         

</telerik:IndicatorList>

 

 

         <telerik:RangeList>

 

             

<telerik:RadialRange Min="10"

 

                             

Max="12.0"

 

                             

Location="OverCenter"

 

                             

StartWidth="0.1"

 

                             

EndWidth="0.1"

 

                             

Background="Red"

 

                             

BorderBrush="Red"

 

                             

StrokeThickness="1"

 

                             

TickBackground="White"/>

 

 

         </telerik:RangeList>

 

     

</telerik:RadialScale>

 

 

</telerik:RadialGauge>
</telerik:RadGauge>

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 04 Feb 2010, 08:43 AM
Hi John,

You need to specify the number of major ticks desired. By default that number is 10, if you check the visualization of the gauge produced by that markup, you will notice that "3" and "9" are missing. The following markup should work  fine:

<telerik:RadialScale Name="radialScale" Min="0" Max="12" MajorTicks="12">
                    <telerik:IndicatorList>
                        <telerik:Needle x:Name="needle" Value="4"/>
                    </telerik:IndicatorList>
                    <telerik:RangeList>
                        <telerik:RadialRange Min="10.0"
                                             Max="12.0"
                                             Location="OverCenter"
                                             StartWidth="0.1"
                                             EndWidth="0.1"
                                             Background="Red"
                                             BorderBrush="Red"
                                             StrokeThickness="1"
                                             TickBackground="White"/>
                    </telerik:RangeList>
                </telerik:RadialScale>
 

Greetings,
Ves
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Gauges
Asked by
John
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or