Skip to content

Commit 3d9aece

Browse files
Update doc/python/sankey-diagram.md
Co-authored-by: Chris Parmer <[email protected]>
1 parent 846a286 commit 3d9aece

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

Diff for: doc/python/sankey-diagram.md

+13-12
Original file line numberDiff line numberDiff line change
@@ -220,19 +220,20 @@ Create a Sankey diagram with arrow links by setting the `arrowlen` attribute of
220220
import plotly.graph_objects as go
221221

222222
fig = go.Figure(go.Sankey(
223-
arrangement = "snap",
224-
node = dict(
225-
label = ["A", "B", "C", "D", "E", "F"],
226-
x = [0.2, 0.1, 0.5, 0.7, 0.3, 0.5],
227-
y = [0.7, 0.5, 0.2, 0.4, 0.2, 0.3],
228-
pad = 10
223+
arrangement='snap',
224+
node=dict(
225+
label=['A', 'B', 'C', 'D', 'E', 'F'],
226+
x=[0.2, 0.1, 0.5, 0.7, 0.3, 0.5],
227+
y=[0.7, 0.5, 0.2, 0.4, 0.2, 0.3],
228+
pad=10
229229
),
230-
link = dict(
231-
arrowlen = 15,
232-
source = [0, 0, 1, 2, 5, 4, 3, 5],
233-
target = [5, 3, 4, 3, 0, 2, 2, 3],
234-
value = [1, 2, 1, 1, 1, 1, 1, 2]
235-
)))
230+
link=dict(
231+
arrowlen=15,
232+
source=[0, 0, 1, 2, 5, 4, 3, 5],
233+
target=[5, 3, 4, 3, 0, 2, 2, 3],
234+
value=[1, 2, 1, 1, 1, 1, 1, 2]
235+
)
236+
))
236237

237238
fig.show()
238239
```

0 commit comments

Comments
 (0)