Skip to content

Commit 117ee97

Browse files
committed
validate various mocks
1 parent 856f2ea commit 117ee97

Some content is hidden

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

45 files changed

+35
-83
lines changed

test/image/mocks/16.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"12pm",
3737
"6pm"
3838
],
39-
"scl": [
39+
"colorscale": [
4040
[
4141
0,
4242
"rgb(128, 0, 38)"

test/image/mocks/21.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@
10191019
"end": 4,
10201020
"size": 0.1
10211021
},
1022-
"scl": [
1022+
"colorscale": [
10231023
[
10241024
0,
10251025
"rgb(12,51,131)"

test/image/mocks/25.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@
379379
"end": 13.01,
380380
"size": 1
381381
},
382-
"scl": [
382+
"colorscale": [
383383
[
384384
0,
385385
"rgb(12,51,131)"

test/image/mocks/2dhistogram_contour_subplots.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8021,7 +8021,7 @@
80218021
],
80228022
"name": "density",
80238023
"ncontours": 20,
8024-
"scl": "Hot",
8024+
"colorscale": "Hot",
80258025
"reversescl": true,
80268026
"showscale": false,
80278027
"type": "histogram2dcontour"

test/image/mocks/2dhistogram_contour_subplots_bingroup.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8021,7 +8021,7 @@
80218021
],
80228022
"name": "density",
80238023
"ncontours": 20,
8024-
"scl": "Hot",
8024+
"colorscale": "Hot",
80258025
"reversescl": true,
80268026
"showscale": false,
80278027
"type": "histogram2dcontour",

test/image/mocks/autorange-tozero-rangemode.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
null,
7272
null
7373
],
74-
"mode": "line",
74+
"mode": "lines",
7575
"name": "Take Rate",
7676
"xaxis": "x",
7777
"yaxis": "y2",

test/image/mocks/blackbody_heatmap.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2603,7 +2603,7 @@
26032603
100
26042604
]
26052605
],
2606-
"scl": "Blackbody",
2606+
"colorscale": "Blackbody",
26072607
"type": "heatmap"
26082608
}
26092609
],

test/image/mocks/bluered_heatmap.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2603,7 +2603,7 @@
26032603
100
26042604
]
26052605
],
2606-
"scl": "Bluered",
2606+
"colorscale": "Bluered",
26072607
"type": "heatmap"
26082608
}
26092609
],

test/image/mocks/cividis_heatmap.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2603,7 +2603,7 @@
26032603
100
26042604
]
26052605
],
2606-
"scl": "Cividis",
2606+
"colorscale": "Cividis",
26072607
"type": "heatmap"
26082608
}
26092609
],

test/image/mocks/contour_heatmap_coloring.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"data":[{
3-
"contours":{"coloring":"heatmap","showlines":false},
3+
"contours":{"coloring":"heatmap"},
44
"z":[["1",""],["2",""],["3",""],["3",""],["4",""],["5",""],["6",""],["5",""],["2",""],["3",""],["3",""],["5",""],["6",""],["5",""],["4","1"],["4","2"],["2","3"],["1","4"],["3","5"],["2","4"],["1","3"],["3","2"],["5","3"],["4","4"],["3","3"],["2","2"],["1","1"],["2","2"],["3","3"],["4","4"],["5","6"],["4","5"],["3","4"],["2","3"],["3","2"],["2","3"],["3","4"],["3","3"],["3","2"]],
55
"type":"contour"
66
}],

test/image/mocks/contour_label-thousands-suffix.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@
4242
}],
4343
"layout": {
4444
"title": {"text": "in_Fz_tar = f(in_Fy_tar)"},
45-
"margin": {"r": 80},
46-
"legend": {
47-
"font": {"size": 9}
48-
}
45+
"margin": {"r": 80}
4946
}
5047
}

test/image/mocks/custom_colorscale.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2603,7 +2603,7 @@
26032603
100
26042604
]
26052605
],
2606-
"scl": [
2606+
"colorscale": [
26072607
[
26082608
"0.0",
26092609
"rgb(165,0,38)"

test/image/mocks/earth_heatmap.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2603,7 +2603,7 @@
26032603
100
26042604
]
26052605
],
2606-
"scl": "Earth",
2606+
"colorscale": "Earth",
26072607
"type": "heatmap",
26082608
"zsmooth": "fast"
26092609
}

test/image/mocks/electric_heatmap.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2603,7 +2603,7 @@
26032603
100
26042604
]
26052605
],
2606-
"scl": "Electric",
2606+
"colorscale": "Electric",
26072607
"type": "heatmap"
26082608
}
26092609
],

test/image/mocks/gl2d_clustering.json

-11
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,6 @@
66
"marker": {
77
"color": "rgba(0, 0, 255, 0.1)"
88
},
9-
"_code": [
10-
"var x = []",
11-
"var y = []",
12-
"var n = 123456",
13-
"for (var i = 0; i < n; i++) {",
14-
" var r = Math.pow(i / n, 0.5)",
15-
" var t = i / n * Math.PI * 400",
16-
" x.push(r * Math.cos(t))",
17-
" y.push(r * Math.sin(t))",
18-
"}"
19-
],
209
"x": [
2110
0,
2211
0.002845911564896722,

test/image/mocks/gl2d_line_dash.json

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
"size": 16,
4545
"symbol": "cross",
4646
"line": {
47-
"color": "",
4847
"width": 0
4948
},
5049
"opacity": 0.9

test/image/mocks/gl2d_text_chart_styling.json

-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"size": 18,
5050
"color": "#ff7f0e"
5151
},
52-
"textposition": "bottom",
5352
"type": "scattergl"
5453
}
5554
],

test/image/mocks/greens_heatmap.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2603,7 +2603,7 @@
26032603
100
26042604
]
26052605
],
2606-
"scl": "Greens",
2606+
"colorscale": "Greens",
26072607
"type": "heatmap"
26082608
}
26092609
],

test/image/mocks/greys_heatmap.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2603,7 +2603,7 @@
26032603
100
26042604
]
26052605
],
2606-
"scl": "Greys",
2606+
"colorscale": "Greys",
26072607
"type": "heatmap"
26082608
}
26092609
],

test/image/mocks/hot_heatmap.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2603,7 +2603,7 @@
26032603
100
26042604
]
26052605
],
2606-
"scl": "Hot",
2606+
"colorscale": "Hot",
26072607
"type": "heatmap"
26082608
}
26092609
],

test/image/mocks/indicator_format_extremes.json

-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@
177177
"number": {
178178
"valueformat": ""
179179
},
180-
"value": null,
181180
"domain": {
182181
"x": [
183182
0.7,

test/image/mocks/jet_heatmap.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2603,7 +2603,7 @@
26032603
100
26042604
]
26052605
],
2606-
"scl": "Jet",
2606+
"colorscale": "Jet",
26072607
"type": "heatmap"
26082608
}
26092609
],

test/image/mocks/legend_style.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@
6363
},
6464
"bgcolor": "#E2E2E2",
6565
"bordercolor": "#FFFFFF",
66-
"borderwidth": 2,
67-
"showlegend": true
66+
"borderwidth": 2
6867
}
6968
}
7069
}

test/image/mocks/mapbox_density-mulitple_legend.json

+2-12
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,7 @@
1010
"zmid": 0,
1111
"reversescale": true,
1212
"radius": 50,
13-
"below": "",
14-
"colorbar": {
15-
"y": 1,
16-
"yanchor": "top",
17-
"len": 0.45
18-
}
13+
"below": ""
1914
}, {
2015
"showlegend": true,
2116
"showscale": false,
@@ -25,12 +20,7 @@
2520
"lat": [15, 25, 35],
2621
"zmin": 0,
2722
"zauto": false,
28-
"radius": [50, 100, 10],
29-
"colorbar": {
30-
"y": 0,
31-
"yanchor": "bottom",
32-
"len": 0.45
33-
}
23+
"radius": [50, 100, 10]
3424
}],
3525
"layout": {
3626
"mapbox": {

test/image/mocks/multiple_axes_multiple.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@
6161
}
6262
],
6363
"layout": {
64-
"title": "multiple y-axes example",
64+
"title": {
65+
"text": "multiple y-axes example"
66+
},
6567
"width": 800,
6668
"xaxis": {
6769
"domain": [

test/image/mocks/parcats_invisible_dimension.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"domain": {"x": [0.125, 0.625],"y": [0.25, 0.75]},
55
"dimensions":[
66
{"label": "One", "values": [1, 1, 2, 1, 2, 1, 1, 2, 1]},
7-
{"label": "Two",
7+
{
88
"values": ["A", "B", "A", "B", "C", "C", "A", "B", "C"],
99
"visible": false},
1010
{"label": "Three", "values": [11, 11, 11, 11, 11, 11, 11, 11, 11]}]}

test/image/mocks/picnic_heatmap.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2603,7 +2603,7 @@
26032603
100
26042604
]
26052605
],
2606-
"scl": "Picnic",
2606+
"colorscale": "Picnic",
26072607
"type": "heatmap"
26082608
}
26092609
],

test/image/mocks/polar_bar-stacked.json

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"marker": {"line": {"width": 2}}
1010
}],
1111
"layout": {
12-
"polar": {"barmode": "stacked"},
1312
"colorway": ["#8dd3c7", "#bebada"],
1413
"width": 500,
1514
"height": 500

test/image/mocks/polar_radial-range.json

-3
Original file line numberDiff line numberDiff line change
@@ -3439,9 +3439,6 @@
34393439
1
34403440
]
34413441
},
3442-
"radialaxis": {
3443-
"rangemode": "reversed"
3444-
},
34453442
"angularaxis": {}
34463443
},
34473444
"polar6": {

test/image/mocks/portland_heatmap.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2603,7 +2603,7 @@
26032603
100
26042604
]
26052605
],
2606-
"scl": "Portland",
2606+
"colorscale": "Portland",
26072607
"type": "heatmap"
26082608
}
26092609
],

test/image/mocks/rdbu_heatmap.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2603,7 +2603,7 @@
26032603
100
26042604
]
26052605
],
2606-
"scl": "RdBu",
2606+
"colorscale": "RdBu",
26072607
"type": "heatmap"
26082608
}
26092609
],

test/image/mocks/scatter_errorbars_inherit_color.json

-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
],
6767
"layout": {
6868
"width": 600,
69-
"heigh": 600,
7069
"title": {
7170
"text": "Scatter error bars inherit color from line or marker"
7271
}

test/image/mocks/scatter_fill_no_opacity.json

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"data":[
33
{
44
"marker":{"size":16},
5-
"fillcolor":"rgb(31, 119, 180)",
65
"y":["1","2","3","4","5"],
76
"x":["1","2","3","4","5"],
87
"opacity": 0.2

test/image/mocks/shapes_move-and-reshape-lines.json

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
},
3232
"yaxis2": {
3333
"domain": [0.55,0.92],
34-
"type": "categorical",
3534
"anchor": "x2"
3635
},
3736
"xaxis3": {

test/image/mocks/sort_by_total_matching_axes.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"data": [{
33
"type": "scatter",
4-
"orientation": "v",
54
"x": ["a", "b", "c"],
65
"y": [7, 2, 3]
76
}, {

test/image/mocks/stacked_bar.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@
3333
"xaxis": {
3434
"type": "category"
3535
},
36-
"barmode": "stack",
37-
"categories": [
38-
"giraffes",
39-
"orangutans",
40-
"monkeys"
41-
]
36+
"barmode": "stack"
4237
}
4338
}

test/image/mocks/text_chart_styling.json

-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"size": 18,
5050
"color": "#ff7f0e"
5151
},
52-
"textposition": "bottom",
5352
"type": "scatter"
5453
}
5554
],

test/image/mocks/text_export.json

-1
Original file line numberDiff line numberDiff line change
@@ -7374,7 +7374,6 @@
73747374
6,
73757375
30
73767376
],
7377-
"rangemode": "normal",
73787377
"showexponent": "all",
73797378
"showgrid": true,
73807379
"showline": false,

test/image/mocks/violin_box_multiple_widths.json

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"width": 0.6,
2828
"name": "width: 0.6",
2929
"x": [0, 5, 7, 8],
30-
"side": "positive",
3130
"line": {
3231
"color": "black"
3332
},

test/image/mocks/violin_negative_sides_w_points.json

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
}],
1717
"layout": {
1818
"title": {"text": "Violins - negative sided with positive points"},
19-
"legend": {"x": 0},
2019
"xaxis": {"zeroline": false},
2120
"yaxis": {"dtick": 0.1, "gridcolor": "black"}
2221
}

0 commit comments

Comments
 (0)