Interface: LegendItem
Border radius of the legend box
since
3.1.0
Defined in: index.esm.d.ts:2016 (opens new window)
datasetIndex
• datasetIndex: number
Index of the associated dataset
Defined in: index.esm.d.ts:2021 (opens new window)
fillStyle
• Optional
fillStyle: Color
Fill style of the legend box
Defined in:
fontColor
• Optional
fontColor:
Font color for the text Defaults to LegendOptions.labels.color
Defined in: index.esm.d.ts:2032 (opens new window)
hidden
• Optional
hidden: boolean
If true, this item represents a hidden dataset. Label will be rendered with a strike-through effect
Defined in: index.esm.d.ts:2037 (opens new window)
For box border.
Defined in: index.esm.d.ts:2043 (opens new window)
lineDash
• Optional
lineDash: number[]
For box border.
see
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash
Defined in:
lineDashOffset
• Optional
lineDashOffset: number
For box border.
see
Defined in: index.esm.d.ts:2055 (opens new window)
lineJoin
• Optional
lineJoin: CanvasLineJoin
For box border.
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin
Defined in:
lineWidth
Width of box border
Defined in:
• Optional
pointStyle: PointStyle
Point style of the legend box (only used if usePointStyle is true)
Defined in:
rotation
• Optional
rotation: number
Rotation of the point in degrees (only used if usePointStyle is true)
Defined in:
strokeStyle
• Optional
strokeStyle:
Stroke style of the legend box
Defined in: index.esm.d.ts:2071 (opens new window)
text
• text: string
Label that will be displayed
Defined in: index.esm.d.ts:2010 (opens new window)
textAlign
• Optional
textAlign: TextAlign
Defined in: