API REFERENCE

labelsContent

Allowed values: percent, value, name, name-percent, name-value. Default: undefined.

Definition

ItemValue
JavaScript propertylabelsContent
HTML attributePass objects, arrays, and callbacks as JavaScript properties
TypePieChartLabelContent
Defaultundefined
Literals in the typepercent, 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.

Configuration example

javascript
// Register sy-pie-chart and create the element before configuring it.
chart.labelsContent = "name-percent";