Skip to content

Commit e983614

Browse files
Fix mock-validation tests for z-new_tickmode_sync mock
1 parent 76debab commit e983614

File tree

1 file changed

+76
-40
lines changed

1 file changed

+76
-40
lines changed
Lines changed: 76 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,78 @@
11
{
2-
"data": [
3-
{
4-
"name": "Apples",
5-
"type": "bar",
6-
"x": ["Jan", "Feb", "Mar", "Apr", "May"],
7-
"y": [232, 2506, 470, 1864, -190]
8-
},
9-
{
10-
"name": "Oranges",
11-
"type": "line",
12-
"x": ["Jan", "Feb", "Mar", "Apr", "May"],
13-
"y": [-0.8, 0.09, 0.01, 0.13, 0.42],
14-
"yaxis": "y2"
15-
}
16-
],
17-
"layout": {
18-
"margin": {
19-
"t": 40, "r": 70, "b": 40, "l": 70
20-
},
21-
"width": 700,
22-
"legend": {
23-
"orientation": "h",
24-
"x": 0.6,
25-
"y": 1.1
26-
},
27-
"yaxis": {
28-
"title": "Apples",
29-
"side": "left",
30-
"range": [0, 2506]
31-
},
32-
"yaxis2": {
33-
"title": "Oranges",
34-
"side": "right",
35-
"range": [0, 0.42],
36-
"overlaying": "y",
37-
"tickmode": "sync",
38-
"zeroline": false
2+
"data": [
3+
{
4+
"name": "Apples",
5+
"type": "bar",
6+
"x": [
7+
"Jan",
8+
"Feb",
9+
"Mar",
10+
"Apr",
11+
"May"
12+
],
13+
"y": [
14+
232,
15+
2506,
16+
470,
17+
1864,
18+
-190
19+
]
20+
},
21+
{
22+
"name": "Oranges",
23+
"type": "scatter",
24+
"x": [
25+
"Jan",
26+
"Feb",
27+
"Mar",
28+
"Apr",
29+
"May"
30+
],
31+
"y": [
32+
-0.8,
33+
0.09,
34+
0.01,
35+
0.13,
36+
0.42
37+
],
38+
"yaxis": "y2"
3939
}
40-
}
41-
}
42-
40+
],
41+
"layout": {
42+
"margin": {
43+
"t": 40,
44+
"r": 70,
45+
"b": 40,
46+
"l": 70
47+
},
48+
"width": 700,
49+
"legend": {
50+
"orientation": "h",
51+
"x": 0.6,
52+
"y": 1.1
53+
},
54+
"yaxis": {
55+
"title": {
56+
"text": "Apples"
57+
},
58+
"side": "left",
59+
"range": [
60+
0,
61+
2506
62+
]
63+
},
64+
"yaxis2": {
65+
"title": {
66+
"text": "Oranges"
67+
},
68+
"side": "right",
69+
"range": [
70+
0,
71+
0.42
72+
],
73+
"overlaying": "y",
74+
"tickmode": "sync",
75+
"zeroline": false
76+
}
77+
}
78+
}

0 commit comments

Comments
 (0)