Skip to content

Commit 771b9cf

Browse files
authored
Merge pull request #4762 from plotly/validate-mocks
Validate mocks - first step
2 parents f24c765 + efd8518 commit 771b9cf

File tree

441 files changed

+17498
-15706
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

441 files changed

+17498
-15706
lines changed
-134 Bytes
Loading

test/image/mocks/0.json

+1,181-1,214
Large diffs are not rendered by default.

test/image/mocks/1.json

+9-72
Original file line numberDiff line numberDiff line change
@@ -722,11 +722,11 @@
722722
}
723723
],
724724
"layout": {
725-
"title": "Spectral<br>Box Plot",
726-
"titlefont": {
727-
"color": "",
728-
"family": "",
729-
"size": 18
725+
"title": {
726+
"text": "Spectral<br>Box Plot",
727+
"font": {
728+
"size": 18
729+
}
730730
},
731731
"font": {
732732
"family": "Arial, sans-serif",
@@ -738,11 +738,8 @@
738738
"width": 600,
739739
"height": 400,
740740
"xaxis": {
741-
"title": "Wavelength (nm)",
742-
"titlefont": {
743-
"color": "",
744-
"family": "",
745-
"size": 0
741+
"title": {
742+
"text": "Wavelength (nm)"
746743
},
747744
"range": [
748745
-0.5,
@@ -753,45 +750,22 @@
753750
1
754751
],
755752
"type": "category",
756-
"rangemode": "normal",
757753
"showgrid": false,
758754
"zeroline": true,
759755
"showline": false,
760-
"autotick": false,
761-
"nticks": 0,
762756
"ticks": "",
763757
"showticklabels": true,
764758
"tick0": 0,
765759
"dtick": 1,
766-
"ticklen": 5,
767-
"tickwidth": 1,
768-
"tickcolor": "rgb(204, 204, 204)",
769760
"tickangle": 90,
770-
"tickfont": {
771-
"family": "",
772-
"size": 0,
773-
"color": ""
774-
},
775-
"exponentformat": "e",
776-
"showexponent": "all",
777-
"gridcolor": "rgb(255, 255, 255)",
778-
"gridwidth": 1,
779761
"zerolinecolor": "#000",
780762
"zerolinewidth": 1,
781-
"linecolor": "rgba(0, 0, 0, 0)",
782-
"linewidth": 1,
783763
"anchor": "y",
784-
"position": 0,
785-
"mirror": false,
786-
"overlaying": false,
787764
"autorange": true
788765
},
789766
"yaxis": {
790-
"title": "Response (mV)",
791-
"titlefont": {
792-
"color": "",
793-
"family": "",
794-
"size": 0
767+
"title": {
768+
"text": "Response (mV)"
795769
},
796770
"range": [
797771
-3.919824016319688,
@@ -802,53 +776,19 @@
802776
1
803777
],
804778
"type": "linear",
805-
"rangemode": "normal",
806779
"showgrid": true,
807780
"zeroline": false,
808781
"showline": false,
809-
"autotick": true,
810-
"nticks": 0,
811782
"ticks": "",
812783
"showticklabels": true,
813784
"tick0": 0,
814785
"dtick": 2,
815-
"ticklen": 5,
816-
"tickwidth": 1,
817-
"tickcolor": "#000",
818786
"tickangle": 0,
819-
"tickfont": {
820-
"family": "",
821-
"size": 0,
822-
"color": ""
823-
},
824-
"exponentformat": "none",
825-
"showexponent": "all",
826787
"gridcolor": "rgb(255, 255, 255)",
827788
"gridwidth": 1.5,
828-
"zerolinecolor": "#000",
829-
"zerolinewidth": 1,
830-
"linecolor": "rgba(0, 0, 0, 0)",
831-
"linewidth": 1,
832789
"anchor": "x",
833-
"position": 0,
834-
"mirror": false,
835-
"overlaying": false,
836790
"autorange": true
837791
},
838-
"legend": {
839-
"x": 1.0402836879432624,
840-
"y": 0.98,
841-
"traceorder": "normal",
842-
"font": {
843-
"family": "",
844-
"size": 0,
845-
"color": ""
846-
},
847-
"bgcolor": "#fff",
848-
"bordercolor": "#000",
849-
"borderwidth": 1,
850-
"showlegend": false
851-
},
852792
"margin": {
853793
"l": 50,
854794
"r": 20,
@@ -861,9 +801,6 @@
861801
"plot_bgcolor": "rgb(233, 233, 233)",
862802
"hovermode": "x",
863803
"dragmode": "zoom",
864-
"barmode": "stack",
865-
"bargap": 0.2,
866-
"bargroupgap": 0,
867804
"boxmode": "overlay",
868805
"separators": ".,",
869806
"hidesources": false

test/image/mocks/10.json

+9-72
Original file line numberDiff line numberDiff line change
@@ -223,16 +223,15 @@
223223
"color": "rgba(255, 0, 0, 0.5)",
224224
"width": 2
225225
},
226-
"fillcolor": "rgba(255, 255, 255, 0)",
227226
"type": "scatter"
228227
}
229228
],
230229
"layout": {
231-
"title": "Math Score Box Plots",
232-
"titlefont": {
233-
"color": "",
234-
"family": "",
235-
"size": 16
230+
"title": {
231+
"text": "Math Score Box Plots",
232+
"font": {
233+
"size": 16
234+
}
236235
},
237236
"font": {
238237
"family": "Arial, sans-serif",
@@ -244,11 +243,8 @@
244243
"width": 600,
245244
"height": 440,
246245
"xaxis": {
247-
"title": "",
248-
"titlefont": {
249-
"color": "",
250-
"family": "",
251-
"size": 0
246+
"title": {
247+
"text": ""
252248
},
253249
"range": [
254250
-0.6575,
@@ -259,45 +255,20 @@
259255
1
260256
],
261257
"type": "category",
262-
"rangemode": "normal",
263258
"showgrid": false,
264259
"zeroline": false,
265260
"showline": false,
266-
"autotick": true,
267-
"nticks": 0,
268261
"ticks": "",
269262
"showticklabels": true,
270263
"tick0": 0,
271264
"dtick": 1,
272-
"ticklen": 5,
273-
"tickwidth": 1,
274-
"tickcolor": "#000",
275265
"tickangle": 0,
276-
"tickfont": {
277-
"family": "",
278-
"size": 0,
279-
"color": ""
280-
},
281-
"exponentformat": "e",
282-
"showexponent": "all",
283-
"gridcolor": "rgb(255, 255, 255)",
284-
"gridwidth": 1,
285-
"zerolinecolor": "#000",
286-
"zerolinewidth": 1,
287-
"linecolor": "rgba(0, 0, 0, 0)",
288-
"linewidth": 1,
289266
"anchor": "y",
290-
"position": 0,
291-
"mirror": true,
292-
"overlaying": false,
293267
"autorange": true
294268
},
295269
"yaxis": {
296-
"title": "Score",
297-
"titlefont": {
298-
"color": "",
299-
"family": "",
300-
"size": 0
270+
"title": {
271+
"text": "Score"
301272
},
302273
"range": [
303274
-1.6340975059013805,
@@ -312,48 +283,18 @@
312283
"showgrid": true,
313284
"zeroline": false,
314285
"showline": false,
315-
"autotick": true,
316-
"nticks": 0,
317286
"ticks": "",
318287
"showticklabels": true,
319288
"tick0": 0,
320289
"dtick": 2,
321-
"ticklen": 5,
322-
"tickwidth": 1,
323-
"tickcolor": "#000",
324290
"tickangle": 0,
325-
"tickfont": {
326-
"family": "",
327-
"size": 0,
328-
"color": ""
329-
},
330291
"exponentformat": "e",
331292
"showexponent": "all",
332293
"gridcolor": "rgb(204, 204, 204)",
333294
"gridwidth": 1,
334-
"zerolinecolor": "#000",
335-
"zerolinewidth": 1,
336-
"linecolor": "rgba(0, 0, 0, 0)",
337-
"linewidth": 2,
338295
"anchor": "x",
339-
"position": 0,
340-
"mirror": true,
341-
"overlaying": false,
342296
"autorange": true
343297
},
344-
"legend": {
345-
"x": 1.1837209302325582,
346-
"y": 1.0189344262295081,
347-
"traceorder": "normal",
348-
"font": {
349-
"family": "",
350-
"size": 0,
351-
"color": "rgb(67, 67, 67)"
352-
},
353-
"bgcolor": "rgba(255, 255, 255, 0)",
354-
"bordercolor": "rgba(0, 0, 0, 0)",
355-
"borderwidth": 1
356-
},
357298
"margin": {
358299
"l": 80,
359300
"r": 40,
@@ -366,10 +307,6 @@
366307
"plot_bgcolor": "rgb(255, 255, 255)",
367308
"hovermode": "x",
368309
"dragmode": "zoom",
369-
"barmode": "stack",
370-
"bargap": 0.2,
371-
"bargroupgap": 0,
372-
"boxmode": "overlay",
373310
"separators": ".,",
374311
"hidesources": false
375312
}

test/image/mocks/11.json

+15-19
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"color": "rgb(0, 0, 0)",
2323
"thickness": 2,
2424
"width": 6,
25-
"opacity": 1,
2625
"visible": true,
2726
"traceref": "2"
2827
},
@@ -53,7 +52,6 @@
5352
"color": "rgb(0, 0, 0)",
5453
"thickness": 2,
5554
"width": 6,
56-
"opacity": 1,
5755
"visible": true,
5856
"traceref": "3"
5957
},
@@ -78,7 +76,6 @@
7876
"color": "rgb(0, 0, 0)",
7977
"thickness": 2,
8078
"width": 6,
81-
"opacity": 1,
8279
"visible": true
8380
},
8481
"visible": false,
@@ -106,7 +103,6 @@
106103
"color": "rgb(0, 0, 0)",
107104
"thickness": 2,
108105
"width": 6,
109-
"opacity": 1,
110106
"visible": true,
111107
"traceref": "3"
112108
},
@@ -115,11 +111,11 @@
115111
}
116112
],
117113
"layout": {
118-
"title": "Grouped Bar Chart",
119-
"titlefont": {
120-
"color": "",
121-
"family": "",
122-
"size": 16
114+
"title": {
115+
"text": "Grouped Bar Chart",
116+
"font": {
117+
"size": 16
118+
}
123119
},
124120
"font": {
125121
"family": "Arial, sans-serif",
@@ -131,11 +127,11 @@
131127
"width": 600,
132128
"height": 440,
133129
"xaxis": {
134-
"title": "Dose (mg)",
135-
"titlefont": {
136-
"color": "",
137-
"family": "",
138-
"size": 16
130+
"title": {
131+
"text": "Dose (mg)",
132+
"font": {
133+
"size": 16
134+
}
139135
},
140136
"range": [
141137
-0.5,
@@ -180,11 +176,11 @@
180176
"autorange": true
181177
},
182178
"yaxis": {
183-
"title": "Length",
184-
"titlefont": {
185-
"color": "",
186-
"family": "",
187-
"size": 16
179+
"title": {
180+
"text": "Length",
181+
"font": {
182+
"size": 16
183+
}
188184
},
189185
"range": [
190186
0,

0 commit comments

Comments
 (0)