Skip to content

Commit 4292f08

Browse files
committed
add mock for period ticklabelmode
1 parent 6de9589 commit 4292f08

File tree

3 files changed

+93
-0
lines changed

3 files changed

+93
-0
lines changed
34.5 KB
Loading
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"data": [
3+
{
4+
"x": [
5+
"1900-01-01",
6+
"2000-01-01",
7+
"2100-01-01"
8+
],
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"
66+
],
67+
"y": [1, 3, 2],
68+
"xaxis": "x7",
69+
"yaxis": "y7"
70+
}
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+
"xaxis": {"ticklabelmode": "period"},
84+
"xaxis2": {"ticklabelmode": "period", "anchor": "y2"},
85+
"xaxis3": {"ticklabelmode": "period", "anchor": "y3"},
86+
"xaxis4": {"ticklabelmode": "period", "anchor": "y4"},
87+
"xaxis5": {"ticklabelmode": "period", "anchor": "y5"},
88+
"xaxis6": {"ticklabelmode": "period", "anchor": "y6"},
89+
"xaxis7": {"ticklabelmode": "period", "anchor": "y7"}
90+
}
91+
}

test/jasmine/tests/mock_test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ var list = [
253253
'custom_colorscale',
254254
'custom_size_subplot',
255255
'date_axes',
256+
'date_axes_period',
256257
'date_histogram',
257258
'dendrogram',
258259
'display-text_zero-number',
@@ -1296,6 +1297,7 @@ figs['contour-heatmap-coloring-set-contours'] = require('@mocks/contour-heatmap-
12961297
figs['custom_colorscale'] = require('@mocks/custom_colorscale');
12971298
figs['custom_size_subplot'] = require('@mocks/custom_size_subplot');
12981299
figs['date_axes'] = require('@mocks/date_axes');
1300+
figs['date_axes_period'] = require('@mocks/date_axes_period');
12991301
figs['date_histogram'] = require('@mocks/date_histogram');
13001302
// figs['dendrogram'] = require('@mocks/dendrogram');
13011303
figs['display-text_zero-number'] = require('@mocks/display-text_zero-number');

0 commit comments

Comments
 (0)