Is it possible to change the edge color of a node in a Sankey diagram?

In the Sankey diagram examples on this page the edge color of the nodes is set to black by default:
Sankey β€” HoloViews v1.15.2

Is it possible to specify a custom color similar to what has been done for the edge color of the flow?


Hi @tommycarstensen,
Maybe your are looking for the node_line_color option:

import holoviews as hv
from holoviews import opts, dim

sankey = hv.Sankey([
    ['A', 'X', 5],
    ['A', 'Y', 7],
    ['A', 'Z', 6],
    ['B', 'X', 2],
    ['B', 'Y', 9],
    ['B', 'Z', 4]]


That’s exactly what I was looking for. Thank you very much!

1 Like