RadialGauge scale issue.

2 posts, 0 answers
  1. John
    John avatar
    2 posts
    Member since:
    Apr 2009

    Posted 01 Feb 2010 Link to this post

    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>

     

     

     

     

     

  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 04 Feb 2010 Link to this post

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