API REFERENCE

unit

Set as an HTML attribute or JavaScript property. type: string.

Definition

ItemValue
JavaScript propertyunit
HTML attributeunit
Typestring
Defaultundefined

undefined means this property was not explicitly set. The effective value may depend on the chart type and other settings.

Configuration example

javascript
// Register sy-gauge-chart and create the element before configuring it.
chart.unit = "km/h";