Skip to content

Commit a3e41af

Browse files
committed
baseline test mock for drawminorticklabel
1 parent 11fd3f1 commit a3e41af

File tree

1 file changed

+187
-0
lines changed

1 file changed

+187
-0
lines changed
Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
{
2+
"data": [
3+
{
4+
"x": [
5+
"2019-10-01T00:00:00",
6+
"2020-01-01T00:00:00",
7+
"2020-04-01T00:00:00",
8+
"2020-07-01T00:00:00",
9+
"2020-10-01T00:00:00",
10+
"2021-01-01T00:00:00",
11+
"2021-04-01T00:00:00",
12+
"2021-07-01T00:00:00",
13+
"2021-10-01T00:00:00",
14+
"2022-01-01T00:00:00",
15+
"2022-04-01T00:00:00",
16+
"2022-07-01T00:00:00",
17+
"2022-10-01T00:00:00"
18+
],
19+
"xperiod": "M3",
20+
"xperiodalignment": "middle",
21+
"y": [
22+
0,
23+
-2.30469,
24+
-22.1636,
25+
-9.04912,
26+
-5.73645,
27+
-13.9468,
28+
-2.3389,
29+
-0.38651,
30+
1.666218,
31+
4.903598,
32+
6.082659,
33+
6.040196,
34+
5.86461
35+
],
36+
"type": "bar"
37+
},
38+
{
39+
"x": [
40+
"2019-10-01T00:00:00",
41+
"2020-01-01T00:00:00",
42+
"2020-04-01T00:00:00",
43+
"2020-07-01T00:00:00",
44+
"2020-10-01T00:00:00",
45+
"2021-01-01T00:00:00",
46+
"2021-04-01T00:00:00",
47+
"2021-07-01T00:00:00",
48+
"2021-10-01T00:00:00",
49+
"2022-01-01T00:00:00",
50+
"2022-04-01T00:00:00",
51+
"2022-07-01T00:00:00",
52+
"2022-10-01T00:00:00"
53+
],
54+
"xperiod": "M3",
55+
"xperiodalignment": "middle",
56+
"y": [
57+
0,
58+
-0.36063,
59+
0.095131,
60+
-0.73126,
61+
-1.13661,
62+
-2.23413,
63+
-3.79368,
64+
-5.15376,
65+
-6.65433,
66+
-8.4567,
67+
-10.2163,
68+
-11.2734,
69+
-12.1921
70+
],
71+
"type": "bar"
72+
},
73+
{
74+
"x": [
75+
"2019-10-01T00:00:00",
76+
"2020-01-01T00:00:00",
77+
"2020-04-01T00:00:00",
78+
"2020-07-01T00:00:00",
79+
"2020-10-01T00:00:00",
80+
"2021-01-01T00:00:00",
81+
"2021-04-01T00:00:00",
82+
"2021-07-01T00:00:00",
83+
"2021-10-01T00:00:00",
84+
"2022-01-01T00:00:00",
85+
"2022-04-01T00:00:00",
86+
"2022-07-01T00:00:00",
87+
"2022-10-01T00:00:00"
88+
],
89+
"xperiod": "M3",
90+
"xperiodalignment": "middle",
91+
"y": [
92+
0,
93+
0.313137,
94+
17.67733,
95+
8.389384,
96+
3.892285,
97+
20.28805,
98+
7.832283,
99+
6.055129,
100+
4.563399,
101+
4.248476,
102+
4.281987,
103+
4.308401,
104+
4.948447
105+
],
106+
"type": "bar",
107+
"xaxis": "x2"
108+
},
109+
{
110+
"x": [
111+
"2019-10-01T00:00:00",
112+
"2020-01-01T00:00:00",
113+
"2020-04-01T00:00:00",
114+
"2020-07-01T00:00:00",
115+
"2020-10-01T00:00:00",
116+
"2021-01-01T00:00:00",
117+
"2021-04-01T00:00:00",
118+
"2021-07-01T00:00:00",
119+
"2021-10-01T00:00:00",
120+
"2022-01-01T00:00:00",
121+
"2022-04-01T00:00:00",
122+
"2022-07-01T00:00:00",
123+
"2022-10-01T00:00:00"
124+
],
125+
"xperiod": "M3",
126+
"xperiodalignment": "middle",
127+
"y": [
128+
0,
129+
0.76038,
130+
-6.86916,
131+
-0.92843,
132+
1.618134,
133+
-2.89594,
134+
2.360814,
135+
4.274154,
136+
5.982815,
137+
5.197389,
138+
6.249781,
139+
7.882427,
140+
8.592399
141+
],
142+
"type": "bar",
143+
"xaxis": "x2"
144+
}
145+
],
146+
"layout": {
147+
"bargap": 0.1,
148+
"xaxis": {
149+
"title": {
150+
"text": "xaxis: `drawminorticklabel` is ignored because tickformat is incompatible with minor ticks"
151+
},
152+
"dtick": "M12",
153+
"minor": {
154+
"dtick": "M3",
155+
"ticklen": 9,
156+
"tickmode": "linear",
157+
"ticks": "inside"
158+
},
159+
"tickformat": "%Y",
160+
"ticklabelmode": "period",
161+
"drawminorticklabel": -1,
162+
"ticklen": 18,
163+
"type": "date"
164+
},
165+
"xaxis2": {
166+
"title": {
167+
"text": "xaxis2: Label of minor tick before each major tick is drawn"
168+
},
169+
"dtick": "M12",
170+
"minor": {
171+
"dtick": "M1",
172+
"ticklen": 9,
173+
"tickmode": "linear",
174+
"ticks": "outside"
175+
},
176+
"tickformat": "%b %Y",
177+
"drawminorticklabel": -1,
178+
"tickangle": 30,
179+
"ticklabelmode": "period",
180+
"ticklen": 18,
181+
"ticks": "inside",
182+
"side": "top",
183+
"overlaying": "x",
184+
"type": "date"
185+
}
186+
}
187+
}

0 commit comments

Comments
 (0)