Skip to content

Commit 8778648

Browse files
committed
more thorough date_axes mock with a variety of scales
1 parent c5c823b commit 8778648

File tree

2 files changed

+82
-9
lines changed

2 files changed

+82
-9
lines changed

test/image/baselines/date_axes.png

18.7 KB
Loading

test/image/mocks/date_axes.json

Lines changed: 82 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,89 @@
22
"data": [
33
{
44
"x": [
5-
"2013-10-04 22:23:00",
6-
"2013-11-04 22:23:00",
7-
"2013-12-04 22:23:00"
5+
"1900-01-01",
6+
"2000-01-01",
7+
"2100-01-01"
88
],
9-
"y": [
10-
1,
11-
3,
12-
6
9+
"y": [1, 3, 2]
10+
},
11+
{
12+
"x": [
13+
"2013-05-01",
14+
"2013-09-01",
15+
"2014-01-01"
16+
],
17+
"y": [1, 3, 2],
18+
"xaxis": "x2",
19+
"yaxis": "y2"
20+
},
21+
{
22+
"x": [
23+
"2013-11-17",
24+
"2013-12-15",
25+
"2014-01-12"
26+
],
27+
"y": [1, 3, 2],
28+
"xaxis": "x3",
29+
"yaxis": "y3"
30+
},
31+
{
32+
"x": [
33+
"2013-01-01",
34+
"2013-01-02",
35+
"2013-01-03"
36+
],
37+
"y": [1, 3, 2],
38+
"xaxis": "x4",
39+
"yaxis": "y4"
40+
},
41+
{
42+
"x": [
43+
"2013-07-01 18:00",
44+
"2013-07-02 00:00",
45+
"2013-07-02 06:00"
46+
],
47+
"y": [1, 3, 2],
48+
"xaxis": "x5",
49+
"yaxis": "y5"
50+
},
51+
{
52+
"x": [
53+
"2013-01-01 23:59",
54+
"2013-01-02 00:00",
55+
"2013-01-02 00:01"
56+
],
57+
"y": [1, 3, 2],
58+
"xaxis": "x6",
59+
"yaxis": "y6"
60+
},
61+
{
62+
"x": [
63+
"2013-07-01 23:59:59",
64+
"2013-07-02 00:00:00",
65+
"2013-07-02 00:00:01"
1366
],
14-
"type": "scatter"
67+
"y": [1, 3, 2],
68+
"xaxis": "x7",
69+
"yaxis": "y7"
1570
}
16-
]
71+
],
72+
"layout": {
73+
"showlegend": false,
74+
"width": 600,
75+
"height": 500,
76+
"yaxis": {"domain": [0, 0.04]},
77+
"yaxis2": {"domain": [0.16, 0.2]},
78+
"yaxis3": {"domain": [0.32, 0.36]},
79+
"yaxis4": {"domain": [0.48, 0.52]},
80+
"yaxis5": {"domain": [0.64, 0.68]},
81+
"yaxis6": {"domain": [0.80, 0.84]},
82+
"yaxis7": {"domain": [0.96, 1]},
83+
"xaxis2": {"anchor": "y2"},
84+
"xaxis3": {"anchor": "y3"},
85+
"xaxis4": {"anchor": "y4"},
86+
"xaxis5": {"anchor": "y5"},
87+
"xaxis6": {"anchor": "y6"},
88+
"xaxis7": {"anchor": "y7"}
89+
}
1790
}

0 commit comments

Comments
 (0)