SankeyDiagramLinkStyle

New in version 5.0.10

SankeyDiagramLinkStyle ( sourceNodeID ;​ targetNodeID ;​ color ;​ colorVariant )

Argument Type Range Default Note
sourceNodeID str 0..1000
targetNodeID str 0..1000
color rgba 0..255 #8886
colorVariant int -1..0 0
Examples

SankeyDiagramLinkStyle(;​;​lightGray)

SankeyDiagramLinkStyle(;​;​#0f02)

SankeyDiagramLinkStyle("A";​"M";​darkYellow;​-1)

Description

By using the function SankeyDiagramLinkStyle(), the appearance of individual links can be controlled. The arguments sourceNodeID and targetNodeID define which link the function refers to. If argument sourceNodeID is empty, then the function is applied to all links with the target node defined in argument targetNodeID. If argument targetNodeID is empty, then the function is applied to all links with the source node defined in argument sourceNodeID. If both arguments, sourceNodeID and targetNodeID are empty, then the function is applied to all links. The appearance can be varied by using the arguments color and colorVariant.

Function SankeyDiagramLinkColorScheme() can be customized by using the corresponding SankeyDiagramLinkStyle() function. The color scheme function should be listed before the style function(s).

Please note that SankeyDiagramLinkStyle() should be listed after function SankeyDiagram() . This rule generally applies: Function SankeyDiagram() should always be listed first before other Sankey functions are called.

Scroll to Top