# 介面:TitleOptions
# 屬性
# align
• align: Align
標題的對齊方式。
預設值
'center'
# 定義於
# color
• color: Color
文字顏色
請參閱
Defaults.color
# 定義於
# display
• display: boolean
是否顯示標題?
預設值
false
# 定義於
# font
• font: ScriptableAndScriptableOptions
<Partial
<FontSpec
>, ScriptableChartContext
>
# 定義於
# fullSize
• fullSize: boolean
標記此方塊應佔用畫布的完整寬度/高度(移動其他方塊)。如果設定為 false
,則將方塊放置在圖表區域上方/旁邊
預設值
true
# 定義於
# padding
• padding: number
| { bottom
: number
; top
: number
}
如果指定單一數字,則在標題文字的上方和下方添加內距。也可以單獨更改頂部和底部內距。
# 定義於
# position
• position: "left"
| "top"
| "bottom"
| "right"
標題位置
預設值
'top'
# 定義於
# text
• text: string
| string
[]
要顯示的標題文字。如果指定為陣列,則文字會以多行呈現。