# labelsContent

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

Canonical: https://chart.syidax.com/docs/options/labelsContent/

<a id="definition"></a>

## 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](https://chart.syidax.com/docs/types/PieChartLabelContent.md) — Type definition

<a id="example"></a>

## Configuration example

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

- [Pie · Complete examples and API](https://chart.syidax.com/docs/components/pie.md)

<a id="related"></a>

## Related documentation

A property with the same name may have different types and defaults across charts. When using a direct tag, follow that chart's documentation below.

- [Shared facade and direct tags](https://chart.syidax.com/docs/concepts.md)
- [sy-pie-chart](https://chart.syidax.com/docs/components/pie.md#property-labelsContent)
