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

Gauge or Chart?

2 Answers 83 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Eric Schoenholzer
Top achievements
Rank 2
Eric Schoenholzer asked on 06 Jul 2012, 02:08 PM
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 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 11 Jul 2012, 08:39 AM
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 >>

0
Eric Schoenholzer
Top achievements
Rank 2
answered on 11 Jul 2012, 11:38 PM
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
Tags
Gauge
Asked by
Eric Schoenholzer
Top achievements
Rank 2
Answers by
Andrey
Telerik team
Eric Schoenholzer
Top achievements
Rank 2
Share this question
or