Skip to content

Commit 740574b

Browse files
committed
add new test includes d3 p & s formats as well as dates and negative numbers
1 parent 4855033 commit 740574b

File tree

2 files changed

+136
-0
lines changed

2 files changed

+136
-0
lines changed
85.3 KB
Loading

test/image/mocks/tick-increment.json

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
{
2+
"data": [
3+
{
4+
"name": "s & positive",
5+
"x": [
6+
"2019-12-31 23:59:59.998",
7+
"2020-01-01 00:00:00",
8+
"2020-01-01 00:00:00.002"
9+
],
10+
"y": [
11+
"1e-1",
12+
"1e-2",
13+
"1e-0"
14+
],
15+
"type": "scatter"
16+
},
17+
{
18+
"name": "s & negative",
19+
"xaxis": "x2",
20+
"yaxis": "y2",
21+
"x": [
22+
"2019-12-31 23:59:59.998",
23+
"2020-01-01 00:00:00",
24+
"2020-01-01 00:00:00.002"
25+
],
26+
"y": [
27+
"-1e-1",
28+
"-1e-2",
29+
"-1e-0"
30+
],
31+
"type": "scatter"
32+
},
33+
{
34+
"name": "p & negative",
35+
"xaxis": "x3",
36+
"yaxis": "y3",
37+
"x": [
38+
"2019-12-31 23:59:59.998",
39+
"2020-01-01 00:00:00",
40+
"2020-01-01 00:00:00.002"
41+
],
42+
"y": [
43+
"-1e-1",
44+
"-1e-2",
45+
"-1e-0"
46+
],
47+
"type": "scatter"
48+
},
49+
{
50+
"name": "p & positive",
51+
"xaxis": "x4",
52+
"yaxis": "y4",
53+
"x": [
54+
"2019-12-31 23:59:59.998",
55+
"2020-01-01 00:00:00",
56+
"2020-01-01 00:00:00.002"
57+
],
58+
"y": [
59+
"1e-1",
60+
"1e-2",
61+
"1e-0"
62+
],
63+
"type": "scatter"
64+
}
65+
],
66+
"layout": {
67+
"width": 800,
68+
"height": 800,
69+
"xaxis": {
70+
"type": "date",
71+
"domain": [
72+
0,
73+
0.45
74+
]
75+
},
76+
"xaxis2": {
77+
"type": "date",
78+
"anchor": "y2",
79+
"domain": [
80+
0.6,
81+
1
82+
]
83+
},
84+
"xaxis3": {
85+
"type": "date",
86+
"anchor": "y3",
87+
"domain": [
88+
0,
89+
0.45
90+
]
91+
},
92+
"xaxis4": {
93+
"type": "date",
94+
"anchor": "y4",
95+
"domain": [
96+
0.6,
97+
1
98+
]
99+
},
100+
"yaxis": {
101+
"nticks": 10,
102+
"tickformat": "s",
103+
"domain": [
104+
0,
105+
0.45
106+
]
107+
},
108+
"yaxis2": {
109+
"nticks": 10,
110+
"tickformat": "s",
111+
"anchor": "x2",
112+
"domain": [
113+
0,
114+
0.45
115+
]
116+
},
117+
"yaxis3": {
118+
"nticks": 10,
119+
"tickformat": "p",
120+
"anchor": "x3",
121+
"domain": [
122+
0.6,
123+
1
124+
]
125+
},
126+
"yaxis4": {
127+
"nticks": 10,
128+
"tickformat": "p",
129+
"anchor": "x4",
130+
"domain": [
131+
0.6,
132+
1
133+
]
134+
}
135+
}
136+
}

0 commit comments

Comments
 (0)