Blazor LinearGauge - Overview
- EDIT IN TELERIK REPL
- Change Theme
Change pointer value
The LinearGauge component is part of Telerik UI for Blazor, a professional grade UI library with 100+ native components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.
The Telerik UI for Blazor LinearGauge visualizes numerical values on a scale of ranges in a linear format. It is one of the four gauge UI components available in the Telerik UI for Blazor data visualization collection that lets you visualize data values against a scale to easily identify them as suitable or sub-par values. In the linear gauge, the dial is a classic straight ruler scale that resembles a thermometer.
In the current demo, you can see a primary example of the Telerik LinearGauge component in Blazor applications. The gauge is added to a razor file by plugging the <TelerikLinearGauge> tag. Its scale is configured with minimum and maximum values in the tag <LinearGaugeScale> and an instance of the <LinearGaugePointer> is added as part of the <LinearGaugePointers> collection with an assigned value. To interact with the example, you can change the pointer values and see how the LinearGauge pointer updates its value on the scale.
The Telerik LinearGauge exposes multiple features and properties for further customization:
CSS class, width, height, scale orientation (horizontal and vertical), minimum and maximum values, direction, minor and major unit ticks, ranges (from and to values, color and opacity), labels (format, color and visibility) and pointer settings (shape, color, opacity, size and margin). In case you need to re-render the LinearGauge programmatically, you can take advantage of the exposed Refresh method.