Skip to main content
SubtitleSpec
Definition of a chart subtitle.
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?FontSpecSpec for the font to use for the subtitle. Default size is 16px and style is 'italic'.
padding?numberHow much blank space to leave after the title.
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.