# Legend

The Chart legend displays the name of the configured data series.

To customize the legend, use the [ChartLegend](https://www.telerik.com/kendo-react-ui/components/charts/api/chartlegend) configuration component.

The following example demonstrates how to configure the position and orientation of the Chart legend.

[Demo Source](https://demos.telerik.com/kendo-react-ui/charts/chart/legend/overview/func/source.txt)

## Hiding the Legend

If you set the series names, the Chart displays a default legend.

The following example demonstrates how to hide the legend by using its [`visible`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartlegendprops#visible) property.

[Demo Source](https://demos.telerik.com/kendo-react-ui/charts/chart/legend/hiding-the-legend/func/source.txt)

## Configuring the Legend Items

The Legend Item types and settings are derived from the series configuration. For additional configuration, use the series [`legendItem`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartseriesitemprops#legenditem)
property.

The following example shows the different Legend Item types:

[Demo Source](https://demos.telerik.com/kendo-react-ui/charts/chart/legend/legend-items-types/func/source.txt)

## Clicking Legend Items

Clicking the legend items triggers the [`onLegendItemClick`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartprops#onlegenditemclick) event which can be used to toggle the visibility of the clicked series. When `onLegendItemClick` is not handled, the Chart itself toggles the series visibility.

[Demo Source](https://demos.telerik.com/kendo-react-ui/charts/chart/legend/legend-items/func/source.txt)

## Customizing the Position

You can remove the legend from the flow and absolutely position it by setting the position to `custom` and configuring the `offsetX` and `offsetY` options.

[Demo Source](https://demos.telerik.com/kendo-react-ui/charts/chart/legend/customizing/func/source.txt)

## Setting a Title

The Chart legend section can be configured to hold a title with customizable layout and content.
To define a title, use the [`ChartLegendTitle`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartlegendtitle) component.

[Demo Source](https://demos.telerik.com/kendo-react-ui/charts/chart/legend/title/func/source.txt)

## Suggested Links

* [API Reference of the Chart](https://www.telerik.com/kendo-react-ui/components/charts/api)
