Skip to content

Commit e7691c2

Browse files
committed
make gl2d mocks valid JSON
1 parent 708c6e5 commit e7691c2

38 files changed

+8025
-6025
lines changed

test/image/mocks/gl2d_10.json

Lines changed: 184 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -1,116 +1,184 @@
1-
{ data:
2-
[ { x: [ 'Trial 1', 'Trial 2', 'Trial 3', 'Trial 4', 'Trial 5', 'Trial 6' ],
3-
y:
4-
[ -0.16783142774745008,
5-
2.100280806922215,
6-
1.1036506778911788,
7-
3.1828090399422226,
8-
5.678521665403006,
9-
5.805721742660152 ],
10-
mode: 'lines+markers',
11-
name: 'Medians',
12-
marker:
13-
{ color: 'rgb(255, 255, 255)',
14-
size: 4,
15-
line: { color: 'rgb(255, 0, 0)', width: 1 } },
16-
line: { color: 'rgba(255, 0, 0, 0.5)', width: 2 },
17-
fillcolor: 'rgba(255, 255, 255, 0)',
18-
type: 'scattergl' } ],
19-
layout:
20-
{ title: 'Math Score Box Plots',
21-
titlefont: { color: '', family: '', size: 16 },
22-
font:
23-
{ family: 'Arial, sans-serif',
24-
size: 14,
25-
color: 'rgb(67, 67, 67)' },
26-
showlegend: false,
27-
autosize: false,
28-
width: 600,
29-
height: 440,
30-
xaxis:
31-
{ title: '',
32-
titlefont: { color: '', family: '', size: 0 },
33-
range: [ -0.6575, 5.5 ],
34-
domain: [ 0, 1 ],
35-
type: 'category',
36-
rangemode: 'normal',
37-
showgrid: false,
38-
zeroline: false,
39-
showline: false,
40-
autotick: true,
41-
nticks: 0,
42-
ticks: '',
43-
showticklabels: true,
44-
tick0: 0,
45-
dtick: 1,
46-
ticklen: 5,
47-
tickwidth: 1,
48-
tickcolor: '#000',
49-
tickangle: 0,
50-
tickfont: { family: '', size: 0, color: '' },
51-
exponentformat: 'e',
52-
showexponent: 'all',
53-
gridcolor: 'rgb(255, 255, 255)',
54-
gridwidth: 1,
55-
zerolinecolor: '#000',
56-
zerolinewidth: 1,
57-
linecolor: 'rgba(0, 0, 0, 0)',
58-
linewidth: 1,
59-
anchor: 'y',
60-
position: 0,
61-
mirror: true,
62-
overlaying: false,
63-
autorange: true },
64-
yaxis:
65-
{ title: 'Score',
66-
titlefont: { color: '', family: '', size: 0 },
67-
range: [ -1.6340975059013805, 7.166241526218911 ],
68-
domain: [ 0, 1 ],
69-
type: 'linear',
70-
rangemode: 'normal',
71-
showgrid: true,
72-
zeroline: false,
73-
showline: false,
74-
autotick: true,
75-
nticks: 0,
76-
ticks: '',
77-
showticklabels: true,
78-
tick0: 0,
79-
dtick: 2,
80-
ticklen: 5,
81-
tickwidth: 1,
82-
tickcolor: '#000',
83-
tickangle: 0,
84-
tickfont: { family: '', size: 0, color: '' },
85-
exponentformat: 'e',
86-
showexponent: 'all',
87-
gridcolor: 'rgb(204, 204, 204)',
88-
gridwidth: 1,
89-
zerolinecolor: '#000',
90-
zerolinewidth: 1,
91-
linecolor: 'rgba(0, 0, 0, 0)',
92-
linewidth: 2,
93-
anchor: 'x',
94-
position: 0,
95-
mirror: true,
96-
overlaying: false,
97-
autorange: true },
98-
legend:
99-
{ x: 1.1837209302325582,
100-
y: 1.0189344262295081,
101-
traceorder: 'normal',
102-
font: { family: '', size: 0, color: 'rgb(67, 67, 67)' },
103-
bgcolor: 'rgba(255, 255, 255, 0)',
104-
bordercolor: 'rgba(0, 0, 0, 0)',
105-
borderwidth: 1 },
106-
margin: { l: 80, r: 40, b: 80, t: 80, pad: 2, autoexpand: true },
107-
paper_bgcolor: 'rgb(255, 255, 255)',
108-
plot_bgcolor: 'rgb(255, 255, 255)',
109-
hovermode: 'x',
110-
dragmode: 'zoom',
111-
barmode: 'stack',
112-
bargap: 0.2,
113-
bargroupgap: 0,
114-
boxmode: 'overlay',
115-
separators: '.,',
116-
hidesources: false } }
1+
{
2+
"data": [
3+
{
4+
"x": [
5+
"Trial 1",
6+
"Trial 2",
7+
"Trial 3",
8+
"Trial 4",
9+
"Trial 5",
10+
"Trial 6"
11+
],
12+
"y": [
13+
-0.16783142774745008,
14+
2.100280806922215,
15+
1.1036506778911788,
16+
3.1828090399422226,
17+
5.678521665403006,
18+
5.805721742660152
19+
],
20+
"mode": "lines+markers",
21+
"name": "Medians",
22+
"marker": {
23+
"color": "rgb(255, 255, 255)",
24+
"size": 4,
25+
"line": {
26+
"color": "rgb(255, 0, 0)",
27+
"width": 1
28+
}
29+
},
30+
"line": {
31+
"color": "rgba(255, 0, 0, 0.5)",
32+
"width": 2
33+
},
34+
"fillcolor": "rgba(255, 255, 255, 0)",
35+
"type": "scattergl"
36+
}
37+
],
38+
"layout": {
39+
"title": "Math Score Box Plots",
40+
"titlefont": {
41+
"color": "",
42+
"family": "",
43+
"size": 16
44+
},
45+
"font": {
46+
"family": "Arial, sans-serif",
47+
"size": 14,
48+
"color": "rgb(67, 67, 67)"
49+
},
50+
"showlegend": false,
51+
"autosize": false,
52+
"width": 600,
53+
"height": 440,
54+
"xaxis": {
55+
"title": "",
56+
"titlefont": {
57+
"color": "",
58+
"family": "",
59+
"size": 0
60+
},
61+
"range": [
62+
-0.6575,
63+
5.5
64+
],
65+
"domain": [
66+
0,
67+
1
68+
],
69+
"type": "category",
70+
"rangemode": "normal",
71+
"showgrid": false,
72+
"zeroline": false,
73+
"showline": false,
74+
"autotick": true,
75+
"nticks": 0,
76+
"ticks": "",
77+
"showticklabels": true,
78+
"tick0": 0,
79+
"dtick": 1,
80+
"ticklen": 5,
81+
"tickwidth": 1,
82+
"tickcolor": "#000",
83+
"tickangle": 0,
84+
"tickfont": {
85+
"family": "",
86+
"size": 0,
87+
"color": ""
88+
},
89+
"exponentformat": "e",
90+
"showexponent": "all",
91+
"gridcolor": "rgb(255, 255, 255)",
92+
"gridwidth": 1,
93+
"zerolinecolor": "#000",
94+
"zerolinewidth": 1,
95+
"linecolor": "rgba(0, 0, 0, 0)",
96+
"linewidth": 1,
97+
"anchor": "y",
98+
"position": 0,
99+
"mirror": true,
100+
"overlaying": false,
101+
"autorange": true
102+
},
103+
"yaxis": {
104+
"title": "Score",
105+
"titlefont": {
106+
"color": "",
107+
"family": "",
108+
"size": 0
109+
},
110+
"range": [
111+
-1.6340975059013805,
112+
7.166241526218911
113+
],
114+
"domain": [
115+
0,
116+
1
117+
],
118+
"type": "linear",
119+
"rangemode": "normal",
120+
"showgrid": true,
121+
"zeroline": false,
122+
"showline": false,
123+
"autotick": true,
124+
"nticks": 0,
125+
"ticks": "",
126+
"showticklabels": true,
127+
"tick0": 0,
128+
"dtick": 2,
129+
"ticklen": 5,
130+
"tickwidth": 1,
131+
"tickcolor": "#000",
132+
"tickangle": 0,
133+
"tickfont": {
134+
"family": "",
135+
"size": 0,
136+
"color": ""
137+
},
138+
"exponentformat": "e",
139+
"showexponent": "all",
140+
"gridcolor": "rgb(204, 204, 204)",
141+
"gridwidth": 1,
142+
"zerolinecolor": "#000",
143+
"zerolinewidth": 1,
144+
"linecolor": "rgba(0, 0, 0, 0)",
145+
"linewidth": 2,
146+
"anchor": "x",
147+
"position": 0,
148+
"mirror": true,
149+
"overlaying": false,
150+
"autorange": true
151+
},
152+
"legend": {
153+
"x": 1.1837209302325582,
154+
"y": 1.0189344262295081,
155+
"traceorder": "normal",
156+
"font": {
157+
"family": "",
158+
"size": 0,
159+
"color": "rgb(67, 67, 67)"
160+
},
161+
"bgcolor": "rgba(255, 255, 255, 0)",
162+
"bordercolor": "rgba(0, 0, 0, 0)",
163+
"borderwidth": 1
164+
},
165+
"margin": {
166+
"l": 80,
167+
"r": 40,
168+
"b": 80,
169+
"t": 80,
170+
"pad": 2,
171+
"autoexpand": true
172+
},
173+
"paper_bgcolor": "rgb(255, 255, 255)",
174+
"plot_bgcolor": "rgb(255, 255, 255)",
175+
"hovermode": "x",
176+
"dragmode": "zoom",
177+
"barmode": "stack",
178+
"bargap": 0.2,
179+
"bargroupgap": 0,
180+
"boxmode": "overlay",
181+
"separators": ".,",
182+
"hidesources": false
183+
}
184+
}

0 commit comments

Comments
 (0)