New in version 5.0.10
SankeyDiagramLinkColorScheme ( colorScheme ; opacity )
The appearance of the links can be controlled by using the functions SankeyDiagramLinkColorScheme() and . By using the SankeyDiagramLinkColorScheme() function, 3 special color schemes can be applied to links. If argument colorScheme is not defined, color scheme 1 is used by default. The transparency of the colors can be controlled by using the 2nd argument opacity. The opacity can be set between 0 (fully transparent) and 1 (completely opaque) — default is 0.4.
colorScheme = 1: Apply the fill color of the source nodes to the links (default), for example:
colorScheme = 2: Apply the fill color of the target nodes to the links, for example:
colorScheme = 3: Apply the color gradient between source and target node colors to the links, for example:
Please note that SankeyDiagramLinkColorScheme() should be listed after function . This rule generally applies: Function SankeyDiagram() should always be listed first before other Sankey functions are called.