The guide is being migrated; some links to the API reference may be missing. Use the search bar in the API reference.

Legend

Overview

A Legend describes the elements present on a chart. There are two built-in implementations: HorizontalLegend and VerticalLegend. These Legends consist of LegendItems.

Learn about HorizontalLegend and VerticalLegend creation in Compose.

Application

CartesianCharts accept Legends via the legend constructor parameter.

Last updated