A legend, represented by Legend, describes the elements present on a chart. There are two built-in implementations: HorizontalLegend and VerticalLegend. These use LegendItem instances.
Application
Use the legend constructor parameter to supply a Legend instance.