Skip to content

Legend

Display a legend to identify multiple data series.

Options

OptionTypeDefaultDescription
drawbooleanfalseShow/hide the legend
positiontop|right|bottom|lefttopLegend placement
alignmentstart|center|endcenterAlignment within position

Position

ValueDescription
topAbove the graph (default)
rightRight side of graph
bottomBelow the graph
leftLeft side of graph

Multi-Series Comparison

Legends are essential for comparing multiple data series:

Type Reference

See LegendOptions for full TypeScript definitions.

Released under the ISC License.