# legendItems

Pass as a JavaScript property. type: LegendItem[].

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

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

## Definition

| Item | Value |
| --- | --- |
| JavaScript property | `legendItems` |
| HTML attribute | Pass objects, arrays, and callbacks as JavaScript properties |
| Type | `LegendItem[]` |
| Default | `undefined` |

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

- [LegendItem](https://chart.syidax.com/docs/types/LegendItem.md) — Type definition

<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-line-chart](https://chart.syidax.com/docs/components/line.md#property-legendItems)
- [sy-area-chart](https://chart.syidax.com/docs/components/area.md#property-legendItems)
- [sy-column-chart](https://chart.syidax.com/docs/components/column.md#property-legendItems)
- [sy-bar-chart](https://chart.syidax.com/docs/components/bar.md#property-legendItems)
- [sy-pie-chart](https://chart.syidax.com/docs/components/pie.md#property-legendItems)
- [sy-scatter-chart](https://chart.syidax.com/docs/components/scatter.md#property-legendItems)
- [sy-polar-chart](https://chart.syidax.com/docs/components/polar.md#property-legendItems)
- [sy-radar-chart](https://chart.syidax.com/docs/components/radar.md#property-legendItems)
- [sy-gauge-chart](https://chart.syidax.com/docs/components/gauge.md#property-legendItems)
- [sy-funnel-chart](https://chart.syidax.com/docs/components/funnel.md#property-legendItems)
- [sy-funnel-chart](https://chart.syidax.com/docs/components/pyramid.md#property-legendItems)
- [sy-item-chart](https://chart.syidax.com/docs/components/item.md#property-legendItems)
