API REFERENCE
labelsContent
Allowed values: percent, value, name, name-percent, name-value. Default: undefined.
Definition
| Item | Value |
|---|---|
| JavaScript property | labelsContent |
| HTML attribute | Pass objects, arrays, and callbacks as JavaScript properties |
| Type | PieChartLabelContent |
| Default | undefined |
| Literals in the type | percent, value, name, name-percent, name-value |
undefined means this property was not explicitly set. The effective value may depend on the chart type and other settings.
- PieChartLabelContent
Type definition
Configuration example
// Register sy-pie-chart and create the element before configuring it.
chart.labelsContent = "name-percent";