Gauge or Chart?

3 posts, 0 answers
  1. Eric Schoenholzer
    Eric Schoenholzer avatar
    138 posts
    Member since:
    Mar 2004

    Posted 06 Jul 2012 Link to this post

    Hi,

    I would like to do a kind of pie diagram, but acting like a progress bar. So the pie bar should close until 100%, changing color between and showing some text in the center.
    Is it possible to do such thing with your controls? Better a radial gauge? Or a pie chart?
    Do you have an example of the styling?

    Thanks
    Eric
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 11 Jul 2012 Link to this post

    Hi Eric,

    I'm sorry, but your question isn't quite clear for me. Are you looking for something which looks similar to the attached screenshot? If it is so, then you can achieve it in XAML with our gauge control:

    <telerik:RadRadialGauge>
        <telerik:RadialScale StartAngle="180"
                 SweepAngle="359.9"
                 MajorTickStep="10"
                 ShowLastLabel="False">
            <telerik:RadialScale.Indicators>
                <telerik:BarIndicator telerik:ScaleObject.Location="Inside"
                          telerik:ScaleObject.Offset="0.1*"
                          StartWidth="0.7"
                          EndWidth="0.7"
                          Value="70"/>
            </telerik:RadialScale.Indicators>
            <telerik:RadialScale.CustomItems>
                <TextBlock telerik:ScaleObject.RelativeX="0.5"
                       telerik:ScaleObject.RelativeY="0.5"
                       VerticalAlignment="Center"
                       HorizontalAlignment="Center"
                       FontSize="18"
                       Text="70%"
                       Canvas.ZIndex="800"/>
            </telerik:RadialScale.CustomItems>
        </telerik:RadialScale>
    </telerik:RadRadialGauge>


    Kind regards,
    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Eric Schoenholzer
    Eric Schoenholzer avatar
    138 posts
    Member since:
    Mar 2004

    Posted 11 Jul 2012 Link to this post

    Hi Andrey,

    Thanks, you got it. Excactly for this I was looking for.
    It would be perfect without the scale outside, but this should do it.   

    Eric
Back to Top