API REFERENCE
unit
Set as an HTML attribute or JavaScript property. type: string.
Definition
| Item | Value |
|---|---|
| JavaScript property | unit |
| HTML attribute | unit |
| Type | string |
| Default | undefined |
undefined means this property was not explicitly set. The effective value may depend on the chart type and other settings.
Configuration example
// Register sy-gauge-chart and create the element before configuring it.
chart.unit = "km/h";