Displays the value of multiple metrics within a radar chart.
Design View
In the visual editor, you can find the Radar Chart 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 value must be rendered as a radar chart point.
Code 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-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 | 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.