Skip to content

Commit 91d4a75

Browse files
dyetpinard
authored andcommitted
Add multiple axes test mocks
1 parent 1d650ac commit 91d4a75

6 files changed

+148
-0
lines changed
Loading
Loading
20.2 KB
Loading
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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
}
32+
],
33+
"layout": {
34+
"width": 700,
35+
"height": 500,
36+
"showlegend": false,
37+
"yaxis": {
38+
"side": "left"
39+
},
40+
"yaxis2": {
41+
"side": "right",
42+
"overlaying": "y"
43+
}
44+
}
45+
}
+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"data": [
3+
{
4+
"x": ["2007-01-03", "2007-01-04", "2007-01-05", "2007-01-08", "2007-01-09", "2007-01-10", "2007-01-11", "2007-01-12", "2007-01-16", "2007-01-17", "2007-01-18", "2007-01-19", "2007-01-22", "2007-01-23", "2007-01-24"],
5+
"y": [309579900, 211815100, 208685400, 199276700, 837324600, 738220000, 360063200, 328172600, 311019100, 411565000, 591151400, 341118400, 363506500, 301856100, 231953400],
6+
"mode": "lines",
7+
"name": "volume",
8+
"type": "scattergl",
9+
"xaxis": "x",
10+
"yaxis": "y"
11+
},
12+
{
13+
"x": ["2007-01-03", "2007-01-04", "2007-01-05", "2007-01-08", "2007-01-09", "2007-01-10", "2007-01-11", "2007-01-12", "2007-01-16", "2007-01-17", "2007-01-18", "2007-01-19", "2007-01-22", "2007-01-23", "2007-01-24"],
14+
"y": [10.812461, 11.05245, 10.973744, 11.027936, 11.944027, 12.515616, 12.360785, 12.208533, 12.528519, 12.251111, 11.492433, 11.418888, 11.198251, 11.057612, 11.186639],
15+
"mode": "lines",
16+
"name": "adjusted",
17+
"type": "scattergl",
18+
"xaxis": "x",
19+
"yaxis": "y2"
20+
}
21+
],
22+
"layout": {
23+
"width": 710,
24+
"height": 400,
25+
"showlegend": false,
26+
"xaxis": {
27+
"domain": [0, 1],
28+
"anchor": "y2"
29+
},
30+
"yaxis2": {
31+
"domain": [0, 0.45],
32+
"anchor": "x"
33+
},
34+
"yaxis": {
35+
"domain": [0.55, 1],
36+
"anchor": "x"
37+
}
38+
}
39+
}

0 commit comments

Comments
 (0)