Skip to content

Commit 4c22e0c

Browse files
committed
Add subplots anchor test
1 parent 4287213 commit 4c22e0c

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
+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": 700,
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)