Skip to content

Commit 1bc2eb5

Browse files
authored
Merge pull request #5671 from plotly/validate-more
Validate few more mocks
2 parents 4c69ed7 + 516bfd7 commit 1bc2eb5

12 files changed

+12
-202
lines changed

Diff for: tasks/test_mock.js

-11
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,11 @@ function notBlackListed(name) {
144144
'30',
145145
'31',
146146
'32',
147-
'2dhistogram_contour_subplots',
148-
'2dhistogram_contour_subplots_bingroup',
149147
'annotations',
150148
'annotations-autorange',
151149
'axes_booleans',
152-
'axes_category_ascending',
153-
'axes_category_descending',
154-
'axes_category_descending_with_gaps',
155150
'axes_labels',
156151
'axes-ticks',
157-
'bar-alignment-offset',
158-
'box-alignment-offset',
159152
'candlestick_double-y-axis',
160153
'candlestick_rangeslider_thai',
161154
'category-autorange',
@@ -164,7 +157,6 @@ function notBlackListed(name) {
164157
'error_bar_style',
165158
'fake_violins',
166159
'fonts',
167-
'funnel_11',
168160
'geo_africa-insets',
169161
'gl2d_10',
170162
'gl2d_12',
@@ -216,7 +208,6 @@ function notBlackListed(name) {
216208
'gl3d_z-range',
217209
'glpolar_scatter',
218210
'heatmap_small_aspect-ratio',
219-
'hist_cum_stacked',
220211
'histogram_errorbars_inherit_color',
221212
'indicator_attrs',
222213
'indicator_bignumber',
@@ -255,9 +246,7 @@ function notBlackListed(name) {
255246
'violin_non-linear',
256247
'violin_ridgeplot',
257248
'violin_style',
258-
'waterfall_11',
259249
'waterfall_funnel_texttemplate_date',
260-
'world-cals',
261250
'yaxis-over-yaxis2',
262251
'yignbu_heatmap',
263252
'yiorrd_heatmap'

Diff for: test/image/mocks/2dhistogram_contour_subplots.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8022,7 +8022,7 @@
80228022
"name": "density",
80238023
"ncontours": 20,
80248024
"colorscale": "Hot",
8025-
"reversescl": true,
8025+
"reversescale": true,
80268026
"showscale": false,
80278027
"type": "histogram2dcontour"
80288028
},

Diff for: test/image/mocks/2dhistogram_contour_subplots_bingroup.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8022,7 +8022,7 @@
80228022
"name": "density",
80238023
"ncontours": 20,
80248024
"colorscale": "Hot",
8025-
"reversescl": true,
8025+
"reversescale": true,
80268026
"showscale": false,
80278027
"type": "histogram2dcontour",
80288028
"xbingroup": "X",

Diff for: test/image/mocks/axes_category_ascending.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"text": "category ascending"
1010
},
1111
"type": "category",
12-
"categoryorder": "category ascending",
13-
"categoryarray": ["y","b","x","a","d","z","e","c", "q", "k"]
12+
"categoryorder": "category ascending"
1413
}}
1514
}

Diff for: test/image/mocks/axes_category_descending.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
},
2525
"xaxis": {
2626
"type": "category",
27-
"categoryorder": "category descending",
28-
"categoryarray": [2,4,5,1]
27+
"categoryorder": "category descending"
2928
},
3029
"yaxis": {
3130
"type": "linear",

Diff for: test/image/mocks/axes_category_descending_with_gaps.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
},
2525
"xaxis": {
2626
"type": "category",
27-
"categoryorder": "category descending",
28-
"categoryarray": [2,4,5,1]
27+
"categoryorder": "category descending"
2928
},
3029
"yaxis": {
3130
"type": "linear",

Diff for: test/image/mocks/bar-alignment-offset.json

-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,6 @@
416416
"x": 0,
417417
"xref": "paper",
418418
"y": 0.96,
419-
"yref": "cont",
420419
"font": {
421420
"size": 20
422421
}

Diff for: test/image/mocks/box-alignment-offset.json

-1
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,6 @@
812812
"x": 0,
813813
"xref": "paper",
814814
"y": 0.96,
815-
"yref": "cont",
816815
"font": {
817816
"size": 20
818817
}

Diff for: test/image/mocks/funnel_11.json

+2-96
Original file line numberDiff line numberDiff line change
@@ -33,36 +33,6 @@
3333
"color": "rgb(0, 196, 200)"
3434
},
3535
"type": "funnel", "orientation": "v"
36-
},
37-
{
38-
"x": [
39-
"Half Dose",
40-
"Full Dose",
41-
"Double Dose"
42-
],
43-
"y": [
44-
"1.4102837",
45-
"1.236752",
46-
"0.8396031"
47-
],
48-
"name": "Std Dev - OJ",
49-
"visible": false,
50-
"type": "funnel", "orientation": "v"
51-
},
52-
{
53-
"x": [
54-
"Half Dose",
55-
"Full Dose",
56-
"Double Dose"
57-
],
58-
"y": [
59-
"0.868562",
60-
"0.7954104",
61-
"1.5171757"
62-
],
63-
"name": "Std Dev - VC",
64-
"visible": false,
65-
"type": "funnel", "orientation": "v"
6636
}
6737
],
6838
"layout": {
@@ -100,40 +70,20 @@
10070
"showgrid": true,
10171
"zeroline": false,
10272
"showline": false,
103-
"autotick": true,
104-
"nticks": 0,
10573
"ticks": "",
10674
"showticklabels": true,
10775
"tick0": 0,
10876
"dtick": 1,
109-
"ticklen": 5,
110-
"tickwidth": 1,
111-
"tickcolor": "#000",
11277
"tickangle": 0,
11378
"tickfont": {
11479
"size": 16
11580
},
116-
"exponentformat": "e",
117-
"showexponent": "all",
11881
"gridcolor": "rgb(255, 255, 255)",
11982
"gridwidth": 1.9,
120-
"zerolinecolor": "#000",
121-
"zerolinewidth": 1,
122-
"linecolor": "#000",
123-
"linewidth": 0.1,
12483
"anchor": "y",
125-
"position": 0,
126-
"mirror": true,
127-
"overlaying": false,
12884
"autorange": true
12985
},
13086
"yaxis": {
131-
"title": {
132-
"text": "Length",
133-
"font": {
134-
"size": 16
135-
}
136-
},
13787
"range": [
13888
0,
13989
29.11281652631579
@@ -144,44 +94,14 @@
14494
],
14595
"type": "linear",
14696
"rangemode": "normal",
147-
"showgrid": true,
148-
"zeroline": false,
149-
"showline": false,
150-
"autotick": true,
151-
"nticks": 0,
152-
"ticks": "",
153-
"showticklabels": true,
154-
"tick0": 0,
155-
"dtick": 5,
156-
"ticklen": 5,
157-
"tickwidth": 1,
158-
"tickcolor": "#000",
159-
"tickangle": 0,
160-
"tickfont": {
161-
"family": "",
162-
"size": 16,
163-
"color": ""
164-
},
165-
"exponentformat": "e",
166-
"showexponent": "all",
167-
"gridcolor": "rgb(255, 255, 255)",
168-
"gridwidth": 1.9,
169-
"zerolinecolor": "#000",
170-
"zerolinewidth": 1,
171-
"linecolor": "#000",
172-
"linewidth": 0.1,
17397
"anchor": "x",
174-
"position": 0,
175-
"mirror": true,
176-
"overlaying": false,
17798
"autorange": true
17899
},
179100
"legend": {
180101
"x": 1.02,
181102
"y": 0.9319072504424065,
182103
"traceorder": "normal",
183104
"font": {
184-
"family": "",
185105
"size": 16,
186106
"color": "rgb(0, 0, 0)"
187107
},
@@ -199,29 +119,16 @@
199119
"yref": "paper",
200120
"text": "<b>Supplement</b>",
201121
"font": {
202-
"family": "",
203-
"size": 18,
204-
"color": ""
122+
"size": 18
205123
},
206124
"align": "center",
207125
"showarrow": false,
208-
"arrowhead": 1,
209-
"arrowsize": 1,
210-
"arrowwidth": 0,
211-
"arrowcolor": "",
212-
"ax": -10,
213-
"ay": -26.7109375,
214-
"bordercolor": "",
215126
"borderwidth": 1,
216127
"borderpad": 1,
217128
"bgcolor": "rgba(0,0,0,0)",
218129
"opacity": 1,
219130
"xanchor": "auto",
220-
"yanchor": "auto",
221-
"xatype": "category",
222-
"yatype": "linear",
223-
"tag": "",
224-
"ref": "paper"
131+
"yanchor": "auto"
225132
}
226133
],
227134
"margin": {
@@ -239,7 +146,6 @@
239146
"funnelmode": "group",
240147
"funnelgap": 0.2,
241148
"funnelgroupgap": 0,
242-
"boxmode": "overlay",
243149
"separators": ".,",
244150
"hidesources": false
245151
}

Diff for: test/image/mocks/hist_cum_stacked.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"x": [3, 3, 4, 5, 6, 7, 7],
1212
"type": "histogram",
1313
"cumulative": {"enabled": true, "currentbin": "exclude"},
14-
"xbins": {"start": 0.5, "end": 10.5, "size": 1},
14+
"xbins": {"start": 0.5, "end": 10.5},
1515
"marker": {"color": "red", "line": {"width": 2, "color": "#000"}},
1616
"name": "B"
1717
},

0 commit comments

Comments
 (0)