12 lines
464 B
Python
12 lines
464 B
Python
from d3blocks import D3Blocks
|
|
d3 = D3Blocks()
|
|
df = d3.import_example('energy')
|
|
d3.sankey(df,
|
|
title='Sankey - d3blocks',
|
|
filepath='sankey.html',
|
|
figsize=(800, 600),
|
|
node={"align": "justify", "width": 15, "padding": 15, "color": "currentColor"},
|
|
link={"color": "source-target", "stroke_opacity": 0.5},
|
|
margin={"top": 5, "right": 1, "bottom": 5, "left": 1},
|
|
showfig=True,
|
|
overwrite=True) |