Skip to content

Commit 48a8b1b

Browse files
committed
sankey-circular: add baseline with subplots and vertical orientation
1 parent 9b36090 commit 48a8b1b

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"data": [{
3+
"domain": {
4+
"x": [0, 0.45]
5+
},
6+
"type": "sankey",
7+
"orientation": "h",
8+
"node": {
9+
"line": {
10+
"color": "black",
11+
"width": 1
12+
},
13+
"label": ["el1", "el2", "el3"]
14+
},
15+
"link": {
16+
"source": [0, 2, 1],
17+
"target": [1, 1, 2],
18+
"value": [120, 50, 30],
19+
"color": "purple",
20+
"label": ["stram1", "stream2", "stream3"],
21+
"line": {
22+
"color": "black",
23+
"width": 1
24+
}
25+
}
26+
},
27+
{
28+
"domain": {
29+
"x": [0.55, 1]
30+
},
31+
"type": "sankey",
32+
"orientation": "v",
33+
"node": {
34+
"line": {
35+
"color": "black",
36+
"width": 1
37+
},
38+
"label": ["el4", "el5", "el6", "el7", "el8"]
39+
},
40+
"link": {
41+
"source": [0, 2, 1, 3, 4, 1],
42+
"target": [1, 1, 2, 2, 2, 4],
43+
"value": [120, 50, 30, 70, 25, 10],
44+
"color": "rgba(0, 0, 0, 0.1)",
45+
"label": ["stram4", "stream5", "stream6", "stream7", "stream8", "stream9"],
46+
"line": {
47+
"color": "black",
48+
"width": 1
49+
}
50+
}
51+
}
52+
],
53+
"layout": {
54+
"title": "Multiple Sankey plots with circular links",
55+
"width": 800,
56+
"height": 300,
57+
"margin": {
58+
"t": 50,
59+
"l": 10,
60+
"r": 10,
61+
"b": 10
62+
},
63+
"showlegend": false
64+
}
65+
}

0 commit comments

Comments
 (0)