Skip to content

Commit 51085c4

Browse files
committed
add mocks and baselines for circular Sankey
1 parent 6fb3fb4 commit 51085c4

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed
-46 Bytes
Loading
79.3 KB
Loading

test/image/mocks/sankey_circular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"type": "sankey",
55
"node": {
6-
"pad": 1,
6+
"pad": 5,
77
"label": ["0", "1", "2", "3", "4", "5", "6"]
88
},
99
"link": {
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"data": [{
3+
"type": "sankey",
4+
"node": {
5+
"pad": 5,
6+
"label": ["startA", "startB", "process1", "process2", "process3", "process4", "process5", "process6", "process7", "process8", "process9", "process10", "process11", "process12", "process13", "process14", "process15", "process16", "finishA", "finishB"]
7+
},
8+
"link": {
9+
"source": [0, 0, 0, 1, 1, 2, 5, 3, 2, 6, 7, 5, 7, 5, 4, 4, 16, 14, 8, 9, 9, 17, 9, 12, 5, 13, 8, 16, 11, 11, 15, 10, 17, 10, 16, 16, 12],
10+
"target": [9, 6, 7, 2, 6, 5, 2, 8, 4, 2, 0, 3, 9, 1, 3, 1, 14, 10, 1, 2, 17, 10, 12, 11, 13, 12, 16, 15, 14, 17, 19, 18, 9, 19, 19, 18, 16],
11+
"value": [20, 20, 20, 15, 15, 30, 10, 35, 20, 20, 5, 5, 15, 5, 15, 5, 10, 10, 20, 10, 10, 10, 25, 20, 10, 10, 15, 10, 10, 10, 10, 10, 10, 10, 10, 10, 25]
12+
}
13+
}],
14+
"layout": {
15+
"title": "Example process",
16+
"margin": {"t": 100, "b": 0, "l": 25, "r": 25},
17+
"width": 1000,
18+
"height": 800
19+
}
20+
}

0 commit comments

Comments
 (0)