# 介面:LegendItem

# 屬性

# borderRadius

可選 borderRadius: number | BorderRadius

圖例框的邊框半徑

始於

3.1.0

# 定義於

types/index.d.ts:2264 (開啟新視窗)


# datasetIndex

可選 datasetIndex: number

關聯資料集的索引

# 定義於

types/index.d.ts:2269 (開啟新視窗)


# fillStyle

可選 fillStyle: Color

圖例框的填充樣式

# 定義於

types/index.d.ts:2279 (開啟新視窗)


# fontColor

可選 fontColor: Color

文字的字體顏色,預設為 LegendOptions.labels.color

# 定義於

types/index.d.ts:2285 (開啟新視窗)


# hidden

可選 hidden: boolean

如果為 true,此項目代表隱藏的資料集。標籤將以刪除線效果呈現

# 定義於

types/index.d.ts:2290 (開啟新視窗)


# index

可選 index: number

標籤陣列中關聯標籤的索引

# 定義於

types/index.d.ts:2274 (開啟新視窗)


# lineCap

可選 lineCap: CanvasLineCap

用於邊框。

請參閱

https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineCap

# 定義於

types/index.d.ts:2296 (開啟新視窗)


# lineDash

可選 lineDash: number[]

用於邊框。

請參閱

https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash

# 定義於

types/index.d.ts:2302 (開啟新視窗)


# lineDashOffset

可選 lineDashOffset: number

用於邊框。

請參閱

https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset

# 定義於

types/index.d.ts:2308 (開啟新視窗)


# lineJoin

可選 lineJoin: CanvasLineJoin

用於邊框。

請參閱

https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin

# 定義於

types/index.d.ts:2314 (開啟新視窗)


# lineWidth

Optional lineWidth: number

方塊邊框的寬度

# 定義於

types/index.d.ts:2319 (開啟新視窗)


# pointStyle

Optional pointStyle: PointStyle

圖例方塊的點樣式(僅在 usePointStyle 為 true 時使用)

# 定義於

types/index.d.ts:2329 (開啟新視窗)


# rotation

Optional rotation: number

點的旋轉角度(僅在 usePointStyle 為 true 時使用)

# 定義於

types/index.d.ts:2334 (開啟新視窗)


# strokeStyle

Optional strokeStyle: Color

圖例方塊的筆觸樣式

# 定義於

types/index.d.ts:2324 (開啟新視窗)


# text

text: string

將顯示的標籤

# 定義於

types/index.d.ts:2258 (開啟新視窗)


# textAlign

Optional textAlign: TextAlign

文字對齊方式

# 定義於

types/index.d.ts:2339 (開啟新視窗)