# Interface: LegendItem
# Properties
# datasetIndex
• datasetIndex: number
Index of the associated dataset
Defined in: index.esm.d.ts:1985 (opens new window)
# fillStyle
• Optional
fillStyle: Color
Fill style of the legend box
Defined in: index.esm.d.ts:1990 (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:1995 (opens new window)
# lineCap
• Optional
lineCap: CanvasLineCap
For box border.
see
https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineCap
Defined in: index.esm.d.ts:2001 (opens new window)
# lineDash
• Optional
lineDash: number[]
For box border.
see
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash
Defined in: index.esm.d.ts:2007 (opens new window)
# lineDashOffset
• Optional
lineDashOffset: number
For box border.
see
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset
Defined in: index.esm.d.ts:2013 (opens new window)
# lineJoin
• Optional
lineJoin: CanvasLineJoin
For box border.
see
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin
Defined in: index.esm.d.ts:2019 (opens new window)
# lineWidth
• Optional
lineWidth: number
Width of box border
Defined in: index.esm.d.ts:2024 (opens new window)
# pointStyle
• Optional
pointStyle: PointStyle
Point style of the legend box (only used if usePointStyle is true)
Defined in: index.esm.d.ts:2034 (opens new window)
# rotation
• Optional
rotation: number
Rotation of the point in degrees (only used if usePointStyle is true)
Defined in: index.esm.d.ts:2039 (opens new window)
# strokeStyle
• Optional
strokeStyle: Color
Stroke style of the legend box
Defined in: index.esm.d.ts:2029 (opens new window)
# text
• text: string
Label that will be displayed
Defined in: index.esm.d.ts:1980 (opens new window)
# textAlign
• Optional
textAlign: TextAlign
Text alignment
Defined in: index.esm.d.ts:2044 (opens new window)