Legend
A Legend
describes the elements present on a chart. There are two built-in implementations: HorizontalLegend
and VerticalLegend
. These Legend
s consist of LegendItem
s.
Learn about HorizontalLegend
and VerticalLegend
creation in Compose.
CartesianChart
s accept Legend
s via the legend
constructor parameter.