# 介面:LegendItem
# 屬性
# borderRadius
• 可選
borderRadius: number
| BorderRadius
圖例框的邊框半徑
始於
3.1.0
# 定義於
# datasetIndex
• 可選
datasetIndex: number
關聯資料集的索引
# 定義於
# fillStyle
• 可選
fillStyle: Color
圖例框的填充樣式
# 定義於
# fontColor
• 可選
fontColor: Color
文字的字體顏色,預設為 LegendOptions.labels.color
# 定義於
# hidden
• 可選
hidden: boolean
如果為 true,此項目代表隱藏的資料集。標籤將以刪除線效果呈現
# 定義於
# index
• 可選
index: number
標籤陣列中關聯標籤的索引
# 定義於
# lineCap
• 可選
lineCap: CanvasLineCap
用於邊框。
請參閱
https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineCap
# 定義於
# lineDash
• 可選
lineDash: number
[]
用於邊框。
請參閱
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash
# 定義於
# lineDashOffset
• 可選
lineDashOffset: number
用於邊框。
請參閱
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset
# 定義於
# lineJoin
• 可選
lineJoin: CanvasLineJoin
用於邊框。
請參閱
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin
# 定義於
# lineWidth
• Optional
lineWidth: number
方塊邊框的寬度
# 定義於
# pointStyle
• Optional
pointStyle: PointStyle
圖例方塊的點樣式(僅在 usePointStyle 為 true 時使用)
# 定義於
# rotation
• Optional
rotation: number
點的旋轉角度(僅在 usePointStyle 為 true 時使用)
# 定義於
# strokeStyle
• Optional
strokeStyle: Color
圖例方塊的筆觸樣式
# 定義於
# text
• text: string
將顯示的標籤
# 定義於
# textAlign
• Optional
textAlign: TextAlign
文字對齊方式