Legend.title
configurationThe legend title configuration options.
legend.title
Objectlegend.title.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"
legend.title.background
StringThe background color of the title. Accepts a valid CSS color string, including hex and rgb.
Default: "white"
legend.title.border
ObjectThe border of the title.
legend.title.color
StringThe text color of the title. Accepts a valid CSS color string, including hex and rgb.
legend.title.font
StringThe font of the title.
Default: "16px Arial,Helvetica,sans-serif"
legend.title.margin
Number|ObjectThe margin of the title. A numeric value will set all margins.
Default: 5
legend.title.padding
Number|ObjectThe padding of the title. A numeric value will set all margins.
Default: 5
legend.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"
legend.title.text
StringThe text of the legend 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").
legend.title.visible
BooleanIf set to false the Sankey will not display the legend title.
Default: true