Arc
The Telerik RadArcGauge is a Control representing a value on a circular arc. It offers a customizable scale and appearance.
The ArcGauge UI Control for ASP.NET AJAX is available as of R2 2023. The RadArcGauge a server-side WebForms wrapper over the Kendo UI ArcGauge for jQuery widget.
To get an idea which element corresponds to which tag check the RadGauge Structure article. The above gauge was created with the following markup:
<telerik:RadArcGauge runat="server" ID="RadArcGauge1" Height="350" Width="350" Font-Size="XX-Large" Skin="Silk" Value="35">
<CenterTemplate>
#:value # F°
</CenterTemplate>
<Scale Min="20" Max="140" StartAngle="-20" EndAngle="220">
<Labels Visible="true" Position="Outside" Font="16px Arial,Helvetica,sans-serif" Format="{0}°F" />
<MajorTicks Visible="true" Size="20" Color="Black" />
<MinorTicks Visible="true" Color="Black" />
</Scale>
</telerik:RadArcGauge>
The control offers more customization options than the ones shown above:
-
Center Template - You can customize the content inside the center of the ArcGauge by using the center template. RadArcGauge uses Kendo UI Templates to provide full control over the rendering of center element. To evaluate the current value of the Gauge in its center element use
#:value#
. -
Basic Scale configuration - the
Scale
is the main wrapper of the control and details are configurable through inner properties. The mainScale
tag, however, offers the basic functionality - theMin
andMax
values of the gauge, theMajorUnit
andMinorUnit
properties that control the ticks and label distance,and theReverse
property which shows the higher values first when set to true. The specific properties here areStartAngle
andEndAngle
which control the angle from which the gauge's dial starts and at which it ends. The difference between them must be less than 360 degrees and they can also take negative values so that the gauge rotates from the default vertical centering. -
Labels configuration - you can choose the
BackgroundColor
,Color
andFont
to customize their appearance. TheVisible
property controls if they are shown and theFormat
takes a format string that will be applied to the text according to the value. The format string uses the{0}
placeholder to indicate the value. TheTemplate
property is a client template similar to the format - it takes a similar string to show in the labels, but the value placeholder is#=value#
. ThePosition
property controls whether the labels are inside or outside of the dial. -
Ticks configuration - the
MajorTicks
andMinorTicks
inner tags expose the small lines that protrude from the ranges to show the value. They offer various options for customization -Color
,Size
orWidth
(in pixels) andVisible
(boolean). -
Color Ranges configuration - the
ColorsCollection
tag can contain multipleArcGaugeColor
tags that represent the areas of the gauge that will show differently than the regular scale. Each color range has theFrom
andTo
properties that control is positioning on the scale and also theColor
property that can be used to specify their fill. -
Main gauge configuration - the
Appearance
tag of the control allows for customizing its entire look. It offers theBackgroundColor
property which sets the wrapper's background fill and alsoHeight
,Width
, andMargin
defining the size of the wrapper and the distance between the Gauge itself and the contour of its wrapper.
Try out various of the customization options in our live demo.