Subtitle
configurationThe chart subtitle configuration options or text.
subtitle
Object|Stringsubtitle.align
StringThe alignment of the subtitle.
- "center" - the text is aligned to the middle.
- "left" - the text is aligned to the left.
- "right" - the text is aligned to the right.
By default, the subtitle has the same alignment as the title.
subtitle.background
StringThe background color of the subtitle. Accepts a valid CSS color string, including hex and rgb.
Default: "white"
subtitle.border
ObjectThe border of the subtitle.
subtitle.color
StringThe text color of the subtitle. Accepts a valid CSS color string, including hex and rgb.
subtitle.font
StringThe font of the title.
Default: "12px Arial,Helvetica,sans-serif"
subtitle.margin
Number|ObjectThe margin of the subtitle. A numeric value will set all margins.
Default: 5
subtitle.padding
Number|ObjectThe padding of the subtitle. A numeric value will set all margins.
Default: 5
subtitle.position
StringThe position of the subtitle.
- "bottom" - the title is positioned on the bottom.
- "top" - the title is positioned on the top.
By default, the subtitle is placed in the same position as the title.
Default: "top"
subtitle.text
StringThe text of the chart subtitle. You can also set the text directly for a title with default options.
The text can be split into multiple lines by using line feed characters ("\n").
subtitle.visible
BooleanIf set to true the chart will display the subtitle. By default the subtitle will be displayed.
Default: true