Data.nodes.label
configurationThe label of the node.
data.nodes.label
ObjectDefault: (required)
data.nodes.label.align
StringThe alignment of the label. The supported values are:
- "left" - The label is aligned to the left.
- "right" - The label is aligned to the right.
- "center" - The label is aligned to the center.
Default: "left"
data.nodes.label.border
ObjectThe border of the label.
data.nodes.label.color
StringThe color of the label. Accepts a valid CSS color string, including hex and rgb.
data.nodes.label.font
StringThe font of the label. Accepts a valid CSS font string. For example, "bold 12px Arial".
data.nodes.label.margin
ObjectThe margin of the label.
data.nodes.label.offset
ObjectThe offset applied to the label's position.
data.nodes.label.padding
Number|ObjectThe padding of the label.
The 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"
data.nodes.label.stroke
ObjectThe stroke of the label.
data.nodes.label.text
StringThe text of the label.
Default: (required)
data.nodes.label.visible
BooleanIf set to false, the label will not be displayed.
Default: true