Data.nodes
configurationThe nodes of the Sankey. The nodes are the elements that are connected by the links. Each node has an id that is used to connect the nodes with the links.
data.nodes
ArrayDefault: (required)
data.nodes.align
StringThe alignment of the node. The supported values are:
- "stretch" - The node is aligned to left or right in order to fill the entire width of the Sankey.
- "left" - The node is aligned to the left.
- "right" - The node is aligned to the right.
data.nodes.color
StringThe color of the node. Accepts a valid CSS color string, including hex and rgb.
data.nodes.id
Number|StringThe ID of the node. The ID is used to connect the nodes with the links.
Default: (required)
data.nodes.label
ObjectThe label of the node.
Default: (required)
data.nodes.offset
ObjectThe offset applied to the node's position.
Default: { top: 0, left: 0 }
data.nodes.opacity
NumberThe opacity of the node.
Default: 1
data.nodes.padding
NumberThe minimum vertical space between two nodes.
Default: 16
data.nodes.width
NumberThe width of the node.
Default: 24