Displays the value of multiple metrics within a radar chart.
code_blocksDesign View
In the template editor, you can find the Radar Chart icon under the Charts component palette group.
You can drag the widget into the grid and then configure the following sub-elements according to your needs:
Metric: the metric whose value must be rendered as a radar chart point.
Below are references to the properties that can be configured for this widget.
For more details on how to manage metrics, you can refer to this article.
code_blocksCode View
Template Syntax
Below you can find some examples of how to use the component within a template.
<radar-chart-widget [title]="'Product Averall Status'"> <metric name="Health"></metric> <metric name="Usage"></metric> <metric name="Wear"></metric> <metric name="Performance"></metric> <metric name="Quality"></metric> </radar-chart-widget>
Component Reference
Here is a comprehensive list of all the elements and properties that can be used to configure the component.
Radar Chart <radar-chart-widget> | |
---|---|
PROPERTIES | |
CSS Class | The name(s) of the CSS class used to customize the widget layout. Type: STRING | Optional class="my-custom-class" |
Fill Color | The color used to fill the radar chart area with opacity 0.2, if not specified the line color is used instead. Type: STRING | Optional [config]="{fillColor: 'fooBar'}" |
Line Color | The color used by the radar chart line. Type: STRING | Optional | Default: #F44336 [config]="{lineColor: 'fooBar'}" |
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" |
Width | The width of the widget (e.g. 500px). Type: STRING | Optional [config]="{width: '500px'}" |
SUB-ELEMENTS | |
Metric | The metric whose value must be rendered as a radar chart point. Multiple | Required <metric name="Temperature"></metric> |
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 | Required 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.