Title
configurationThe Sankey title configuration options.
title
Objecttitle.align
StringThe alignment of the title.
- "center" - the text is aligned to the middle.
- "left" - the text is aligned to the left.
- "right" - the text is aligned to the right.
Default: "center"
title.background
StringThe background color of the title. Accepts a valid CSS color string, including hex and rgb.
Default: "white"
title.border
ObjectThe border of the title.
title.color
StringThe text color of the title. Accepts a valid CSS color string, including hex and rgb.
title.description
StringThe accessible description of the Sankey. The description is announced by screen readers when the Sankey is focused.
title.font
StringThe font of the title.
Default: "16px Arial,Helvetica,sans-serif"
title.margin
Number|ObjectThe margin of the title. A numeric value will set all margins.
Default: 5
title.padding
Number|ObjectThe padding of the title. A numeric value will set all margins.
Default: 5
title.position
StringThe position of the title.
- "bottom" - the title is positioned on the bottom.
- "top" - the title is positioned on the top.
Default: "top"
title.text
StringThe text of the Sankey title. 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").
title.visible
BooleanIf set to false the Sankey will not display the title.
Default: true