Skip to content

Commit 599fa94

Browse files
committed
Add test mocks for sankey sort options
1 parent 3a9a834 commit 599fa94

4 files changed

Lines changed: 44 additions & 0 deletions

File tree

36 KB
Loading
42.2 KB
Loading
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"data": [
3+
{
4+
"type": "sankey",
5+
"node": {
6+
"label": ["0", "1", "2", "3", "4", "5"],
7+
"align": "center",
8+
"sort": "auto"
9+
},
10+
"link": {
11+
"source": [0, 0, 0, 0, 1, 4],
12+
"target": [1, 2, 3, 4, 5, 5],
13+
"value": [1, 2, 1, 1, 1, 1]
14+
}
15+
}
16+
],
17+
"layout": {
18+
"title": { "text": "Sankey with automatic vertical node ordering" },
19+
"width": 800,
20+
"height": 800
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"data": [
3+
{
4+
"type": "sankey",
5+
"node": {
6+
"label": ["0", "1", "2", "3", "4", "5"],
7+
"align": "center",
8+
"sort": "input"
9+
},
10+
"link": {
11+
"source": [0, 0, 0, 0, 1, 4],
12+
"target": [1, 2, 3, 4, 5, 5],
13+
"value": [1, 2, 1, 1, 1, 1]
14+
}
15+
}
16+
],
17+
"layout": {
18+
"title": { "text": "Sankey with fixed vertical node ordering" },
19+
"width": 800,
20+
"height": 800
21+
}
22+
}

0 commit comments

Comments
 (0)