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?
Thanks!
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?
Thanks!
Hi @tommycarstensen,
Maybe your are looking for the node_line_color option:
import holoviews as hv
from holoviews import opts, dim
hv.extension('bokeh')
sankey = hv.Sankey([
['A', 'X', 5],
['A', 'Y', 7],
['A', 'Z', 6],
['B', 'X', 2],
['B', 'Y', 9],
['B', 'Z', 4]]
)
sankey.opts(node_line_color="red",
width=600,
height=400)
That’s exactly what I was looking for. Thank you very much!
Where did you find that? I don’t see node_line_color
documented anywhere in the hvplot documentation.
From this example about Network Graphs:
Sankey plots depends on hv.Graph: