We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 846a286 commit 3d9aeceCopy full SHA for 3d9aece
doc/python/sankey-diagram.md
@@ -220,19 +220,20 @@ Create a Sankey diagram with arrow links by setting the `arrowlen` attribute of
220
import plotly.graph_objects as go
221
222
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
+ arrangement='snap',
+ node=dict(
+ label=['A', 'B', 'C', 'D', 'E', 'F'],
+ x=[0.2, 0.1, 0.5, 0.7, 0.3, 0.5],
+ y=[0.7, 0.5, 0.2, 0.4, 0.2, 0.3],
+ pad=10
229
),
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
- )))
+ link=dict(
+ arrowlen=15,
+ source=[0, 0, 1, 2, 5, 4, 3, 5],
+ target=[5, 3, 4, 3, 0, 2, 2, 3],
+ value=[1, 2, 1, 1, 1, 1, 1, 2]
+ )
236
+))
237
238
fig.show()
239
```
0 commit comments