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

Some questions

1 Answer 136 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Aldo
Top achievements
Rank 2
Aldo asked on 07 Jun 2013, 04:33 PM
Hi,I've some questions about RadRadialGauge :

1) is it possible to change the colored range width (like as in the linear gauges);
2) is it possible to show only some labels ? for eaxample min value, max value and mid value, on the scale ?
3) is it possible to show a label with the actual value (similar to http://www.justgage.com/)
4)  is it possible to set gaugerange by percentual instead values, like this
<Ranges>
    <telerik:GaugeRange Color="#8dcb2a" From="0" To="25%" />
    <telerik:GaugeRange Color="#ffc700" From="25%" To="50%" />
    <telerik:GaugeRange Color="#ff7a00" From="50%" To="75%" />
    <telerik:GaugeRange Color="#c20000" From="75%" To="100%" />
</Ranges>

thanks

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 12 Jun 2013, 12:06 PM
Hello Aldo,

Please find below my answers to your questions:
  • is it possible to change the colored range width (like as in the linear gauges) - The feature is not supported, however, I have logged it in our feedback portal here, so that you can monitor, comment or raise its priority by voting on it.
  • is it possible to show only some labels ? for example min value, max value and mid value, on the scale ? Currently the labels of the RadGauge are displayed per each majorUnit. That means if the majorUnit equals to the Max, only the min and max values will be present. For example:
<telerik:RadRadialGauge ID="RadRadialGauge1" runat="server">
    <Scale MajorUnit="200" MinorUnit="0" Min="0" Max="200">
        <Labels />
        <Ranges>
            <telerik:GaugeRange From="0" To="50" Color="Green" />
            <telerik:GaugeRange From="50" To="100" Color="Blue" />
            <telerik:GaugeRange From="100" To="150" Color="Orange" />
            <telerik:GaugeRange From="150" To="200" Color="Red" />
        </Ranges>
    </Scale>
</telerik:RadRadialGauge>
You can also raise the priority of this, this and this feature request items.
  • is it possible to show a label with the actual value (similar to http://www.justgage.com/). The feature is not available, however, it has been logged as a PITS item here, so that you can monitor, comment and vote on it. For the time being you can manually create and align a div/span element below the Gauge's pointer and set it with the current value of the Gauge. I have created a simple VS example that illustrates that in that attached archive.
  • is it possible to set gaugerange by percentual instead values - You cannot set directly percentages to the RadGauge's ranges. You can, however, format the string numbers to a percentages or just put the percentage sign after the labels. For example:
    <telerik:RadRadialGauge ID="RadRadialGauge1" runat="server" Width="200px" Height="200px">
...
        <Scale MajorUnit="20" MinorUnit="0" Min="0" Max="200">
            <Labels Format="{0:P0}" />
...
        </Scale>
    </telerik:RadRadialGauge>
or
    <telerik:RadRadialGauge ID="RadRadialGauge1" runat="server" Width="200px" Height="200px">
..
        <Scale MajorUnit="20" MinorUnit="0" Min="0" Max="200">
            <Labels Format="{0}%" />
..
        </Scale>
    </telerik:RadRadialGauge>

I have also updated your Telerik points for sharing your ideas with us.


Regards,
Danail Vasilev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Gauge
Asked by
Aldo
Top achievements
Rank 2
Answers by
Danail Vasilev
Telerik team
Share this question
or