Skip to content

Commit d646e2c

Browse files
committed
Add/fix multiple traces axes mocks
1 parent 41499e8 commit d646e2c

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"data": [
3+
{
4+
"x": [
5+
0,
6+
1,
7+
2
8+
],
9+
"y": [
10+
0,
11+
1,
12+
2
13+
],
14+
"mode": "lines+markers",
15+
"type": "scattergl"
16+
},
17+
{
18+
"x": [
19+
0,
20+
1,
21+
2
22+
],
23+
"y": [
24+
2,
25+
1,
26+
0
27+
],
28+
"mode": "lines+markers",
29+
"type": "scattergl",
30+
"yaxis": "y2",
31+
"xaxis": "x2"
32+
}
33+
],
34+
"layout": {
35+
"width": 700,
36+
"height": 500,
37+
"showlegend": false,
38+
"yaxis": {
39+
"side": "right",
40+
"tickmode": "array",
41+
"ticktext": ["RightZero", "RightOne", "RightTwo"],
42+
"tickvals": [0,1,2]
43+
},
44+
"yaxis2": {
45+
"side": "left",
46+
"tickmode": "array",
47+
"ticktext": ["LeftZero", "LeftOne", "LeftTwo"],
48+
"tickvals": [0,1,2],
49+
"overlaying": "y"
50+
},
51+
"xaxis": {
52+
"side": "top",
53+
"tickmode": "array",
54+
"ticktext": ["TopZero", "TopOne", "TopTwo"],
55+
"tickvals": [0,1,2]
56+
},
57+
"xaxis2": {
58+
"side": "bottom",
59+
"tickmode": "array",
60+
"ticktext": ["BottomZero", "BottomOne", "BottomTwo"],
61+
"tickvals": [0,1,2]
62+
}
63+
}
64+
}

test/image/mocks/gl2d_multiple-traces-axes.json

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"layout": {
3434
"width": 700,
3535
"height": 500,
36+
"showlegend": false,
3637
"yaxis": {
3738
"side": "left"
3839
},

0 commit comments

Comments
 (0)