Labels
configurationThe default labels configuration of the Sankey. The labels configuration options will be overridden by the data.nodes.label configuration.
labels
Objectlabels.align
StringThe alignment of the label.
Default: "left"
labels.border
ObjectThe border of the label.
labels.color
StringThe color of the label.
labels.font
StringThe font of the label.
labels.margin
ObjectThe margin of the label.
labels.offset
ObjectThe offset applied to the label's position.
labels.padding
Number|ObjectThe padding of the label.
Default: 0
labels.position
StringThe position of the label. The supported values are:
- "inside" - The label is positioned after the node, except for the nodes at the end of the Sankey, that are placed before the node.
- "before" - The label is positioned before the node.
- "after" - The label is positioned after the node.
Default: "inside"
labels.stroke
ObjectThe stroke of the label text.
labels.visible
BooleanIf set to false, the label will not be displayed.
Default: true