Data.links
configurationThe links of the Sankey. The links are the connections between the nodes.
Each link has a sourceId and targetId that correspond to the id of the source and target nodes, and a value that represents the value of the link.
data.links
ArrayDefault: (required)
data.links.color
StringThe color of the link. The color is used when the colorType option is set to static. Accepts a valid CSS color string, including hex and rgb.
data.links.colorType
StringThe color type of the link. The supported values are:
- "static" - The link color is static. The color is determined by the link's
coloroption. - "source" - The link color is the same as the source node color.
- "target" - The link color is the same as the target node color.
data.links.highlight
ObjectThe link highlight configuration options.
data.links.opacity
NumberThe opacity of the links.
Default: 0.4
data.links.sourceId
Number|StringThe source node ID of the link. The source node is the node from which the link originates.
Default: (required)
data.links.targetId
Number|StringThe target node ID of the link. The target node is the node to which the link points.
Default: (required)
data.links.value
NumberThe value of the link. The value represents the weight of the link and determines the width of the link.
Default: (required)