Skip to main content
ChartTitleSpec
Definition of a title used in a chart.
NameTypeDescription
align?ChartTitleAlignmentHow to align the text - left, middle or right
fillRatio?numberIf the title is too wide for the chart, this defines the amount of the width of the chart that it should fill, before being wrapped. Ignored if you set titleWrap:false. Defaults to 0.9.
font?FontSpecSpecs for the font to use for the title. In the title, the default font size is 20px, and style is 'bold'
padding?numberHow much blank space to leave after the title.
placement?ChartTitlePlacementWhere to place the title - top or bottom. Defaults to top.
text?stringThe text to display.
wrap?booleanIf the title is too wide for the chart, this flag controls whether or not the title is wrapped. It defaults to true.