Skip to content

Commit 4a0b1a5

Browse files
committed
add axis automargin + zero margins mock
1 parent 53b62b3 commit 4a0b1a5

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"data": [
3+
{
4+
"x": [ "12 AM", "1 AM", "2 AM", "3 AM", "4 AM", "5 AM", "6 AM", "7 AM", "8 AM", "9 AM", "10 AM", "11 AM" ],
5+
"y": [ 59.44, 68.75, 87.5, 100.5, 95.56, 92.8, 85.25, 77.4, 76.4, 73.94, 74.56, 81.06 ]
6+
},
7+
{
8+
"x": [ "12 AM", "1 AM", "2 AM", "3 AM", "4 AM", "5 AM", "6 AM", "7 AM", "8 AM", "9 AM", "10 AM", "11 AM" ],
9+
"y": [ 59.44, 68.75, 87.5, 100.5, 95.56, 92.8, 85.25, 77.4, 76.4, 73.94, 74.56, 81.06 ],
10+
"xaxis": "x2",
11+
"yaxis": "y2"
12+
}
13+
],
14+
"layout": {
15+
"margin": {"l": 0, "r": 0, "t": 0, "b": 0},
16+
"grid": {"rows": 1, "columns": 2, "pattern": "independent"},
17+
"xaxis": {
18+
"automargin": true
19+
},
20+
"yaxis": {
21+
"automargin": true
22+
},
23+
"xaxis2": {
24+
"automargin": true,
25+
"side": "top"
26+
},
27+
"yaxis2": {
28+
"automargin": true,
29+
"side": "right"
30+
},
31+
"showlegend": false,
32+
"width": 700,
33+
"height": 450
34+
}
35+
}

0 commit comments

Comments
 (0)