This widget allows displaying the last available value of a metric using a manometer like a gauge.
Design View
In the visual editor, you can find the Radial Gauge icon under the Charts component palette group.
You can drag and drop the widget in the grid, and then according to your needs configure the following sub-elements:
Metric: the metric whose current value must be displayed within the gauge.
Code View
Template Syntax
Below you can find some examples of how to use the component within a template.
<radial-gauge-widget title="Pressure" min="0" max="5000"> <metric name="Pressure"></metric> </radial-gauge-widget>
Component Reference
Here is a comprehensive list of all the elements and properties that can be used to configure the component.
<radial-gauge-widget> | |
---|---|
PROPERTIES | |
CSS Class | The name(s) of the CSS class used to customize the widget layout.
Type: STRING | Optional class="my-custom-class" |
Default Value | The default value to display when the metric value is not available.
Type: STRING | Optional defaultValue="fooBar" |
Height | The height of the widget (e.g. 250px).
Type: STRING | Optional height="250px" |
Max | The maximum measure scale value.
Type: INTEGER | Optional [max]="123" |
Min | The minimum measure scale value.
Type: INTEGER | Optional [min]="123" |
Ranges | The set of value ranges (e.g. [10,50,70]).
Type: JSON | Optional [ranges]="{foo: 'bar'}" |
Title | The title displayed on the top part of the widget box.
Type: STRING | Optional [title]="'Details'" |
Visibility Condition | The expression that allows you to reduce the visibility of the element.
Type: STRING | Optional *ngIf="getUser().organizationId != null" |
SUB-ELEMENTS | |
Metric | The metric whose current value must be displayed within the gauge. single | mandatory <metric name="Temperature"></metric> |
<metric> | |
---|---|
PROPERTIES | |
Filter | The name of the filter used to transform and display values.
Type: FILTER | Optional filter="fooBarFilter" |
Label | The metric alternative label.
Type: STRING | Optional label="Temperature" |
Name | The metric whose value(s) must be loaded by the widget.
Type: METRIC | Mandatory name="Temperature" |
Unit | The unit of measurement to be displayed along the value.
Type: STRING | Optional unit="°C" |
Visibility Condition | The expression that allows you to reduce the visibility of the element.
Type: STRING | Optional *ngIf="getUser().organizationId != null" |
Comments
0 comments
Please sign in to leave a comment.