# 介面:TitleOptions

# 屬性

# align

align: Align

標題的對齊方式。

預設值

'center'

# 定義於

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


# color

color: Color

文字顏色

請參閱

Defaults.color

# 定義於

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


# display

display: boolean

是否顯示標題?

預設值

false

# 定義於

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


# font

font: ScriptableAndScriptableOptions<Partial<FontSpec>, ScriptableChartContext>

# 定義於

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


# fullSize

fullSize: boolean

標記此方塊應佔用畫布的完整寬度/高度(移動其他方塊)。如果設定為 false,則將方塊放置在圖表區域上方/旁邊

預設值

true

# 定義於

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


# padding

padding: number | { bottom: number ; top: number }

如果指定單一數字,則在標題文字的上方和下方添加內距。也可以單獨更改頂部和底部內距。

# 定義於

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


# position

position: "left" | "top" | "bottom" | "right"

標題位置

預設值

'top'

# 定義於

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


# text

text: string | string[]

要顯示的標題文字。如果指定為陣列,則文字會以多行呈現。

# 定義於

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