Skip to content

Commit 69c0b29

Browse files
committed
update image test
1 parent 915c67a commit 69c0b29

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

test/image/baselines/legendrank.png

-1.33 KB
Loading

test/image/mocks/legendrank.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,36 @@
11
{
22
"data": [
3-
{"type": "bar", "name": "100", "y": [100], "yaxis": "y2", "legendgroup": "two"},
3+
{"type": "bar", "name": "1", "y": [1], "yaxis": "y2", "legendgroup": "two", "legendrank": 3},
44
{
55
"legendrank": 2,
66
"legendgroup": "pie",
77
"type": "pie",
8-
"labels": ["z","y","x","x","x","y"],
9-
"sort": false,
8+
"labels": ["a","b","c","c","c","a"],
109
"textinfo": "none",
1110
"domain": {
12-
"x": [0.55, 1],
11+
"x": [0, 0.45],
1312
"y": [0.35, 0.65]
1413
}
1514
},
1615
{
1716
"legendrank": 1,
1817
"legendgroup": "pie",
1918
"type": "pie",
20-
"labels": ["a","b","c","c","c","a"],
19+
"labels": ["z","x","x","x","y", "y"],
20+
"sort": false,
2121
"textinfo": "none",
2222
"domain": {
23-
"x": [0, 0.45],
23+
"x": [0.55, 1],
2424
"y": [0.35, 0.65]
2525
}
2626
},
2727
{"type": "scatter", "name": "2", "y": [2], "yaxis": "y", "legendgroup": "one", "legendrank": 2},
2828
{"type": "scatter", "name": "1", "y": [1], "yaxis": "y", "legendgroup": "one", "legendrank": 1},
29-
{"type": "bar", "name": "200", "y": [100], "yaxis": "y2", "legendgroup": "two"},
29+
{"type": "bar", "name": "2", "y": [2], "yaxis": "y2", "legendgroup": "two", "legendrank": 2},
3030
{"type": "scatter", "name": "3", "y": [3], "yaxis": "y", "legendgroup": "one", "legendrank": 3},
31-
{"type": "bar", "name": "300", "y": [100], "yaxis": "y2", "legendgroup": "two"}
31+
{"type": "bar", "name": "3", "y": [3], "yaxis": "y2", "legendgroup": "two", "legendrank": 1}
3232
],
3333
"layout": {
34-
"barmode": "stack",
3534
"title": {
3635
"text": "legendrank"
3736
},
@@ -45,6 +44,7 @@
4544
"domain": [0.7, 1]
4645
},
4746
"yaxis": {
47+
"autorange": "reversed",
4848
"domain": [0, 0.3]
4949
}
5050
}

0 commit comments

Comments
 (0)