Skip to content

Commit 598d60c

Browse files
committed
add image test - pie ranking looks strange
1 parent 5136cc0 commit 598d60c

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

Diff for: test/image/baselines/legendrank.png

16 KB
Loading

Diff for: test/image/mocks/legendrank.json

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"data": [
3+
{"type": "bar", "name": "100", "y": [100], "yaxis": "y2", "legendgroup": "two"},
4+
{
5+
"legendrank": 2,
6+
"legendgroup": "pie",
7+
"type": "pie",
8+
"labels": ["z","y","x","x","x","y"],
9+
"sort": false,
10+
"textinfo": "none",
11+
"domain": {
12+
"x": [0.55, 1],
13+
"y": [0.35, 0.65]
14+
}
15+
},
16+
{
17+
"legendrank": 1,
18+
"legendgroup": "pie",
19+
"type": "pie",
20+
"labels": ["a","b","c","c","c","a"],
21+
"textinfo": "none",
22+
"domain": {
23+
"x": [0, 0.45],
24+
"y": [0.35, 0.65]
25+
}
26+
},
27+
{"type": "scatter", "name": "2", "y": [2], "yaxis": "y", "legendgroup": "one", "legendrank": 2},
28+
{"type": "scatter", "name": "1", "y": [1], "yaxis": "y", "legendgroup": "one", "legendrank": 1},
29+
{"type": "bar", "name": "200", "y": [100], "yaxis": "y2", "legendgroup": "two"},
30+
{"type": "scatter", "name": "3", "y": [3], "yaxis": "y", "legendgroup": "one", "legendrank": 3},
31+
{"type": "bar", "name": "300", "y": [100], "yaxis": "y2", "legendgroup": "two"}
32+
],
33+
"layout": {
34+
"barmode": "stack",
35+
"title": {
36+
"text": "legendrank"
37+
},
38+
"hovermode": "x unified",
39+
"margin": {
40+
"t": 50
41+
},
42+
"width": 300,
43+
"height": 400,
44+
"yaxis2": {
45+
"domain": [0.7, 1]
46+
},
47+
"yaxis": {
48+
"domain": [0, 0.3]
49+
}
50+
}
51+
}

0 commit comments

Comments
 (0)