Skip to content

Commit 5f771a4

Browse files
committed
add tests to lock issue 4355 as well
1 parent 0ebcde3 commit 5f771a4

File tree

4 files changed

+78
-0
lines changed

4 files changed

+78
-0
lines changed
Loading
Loading
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"data": [
3+
{
4+
"showlegend": true,
5+
"coloraxis": "coloraxis",
6+
"x": [0, 10, 12],
7+
"y": [10, 12, 0],
8+
"z": [1, 2, 3],
9+
"contours": {"coloring": "heatmap"},
10+
"line": {"color": "#fff"},
11+
"type": "contour",
12+
"name": "contour"
13+
}
14+
],
15+
"layout": {
16+
"coloraxis": {
17+
"colorscale": [[0, "blue"], [1, "red"]],
18+
"reversescale": true,
19+
"showscale": false
20+
},
21+
"title": "<i>contour</i> legend with <b>coloraxis</b>",
22+
"margin": {
23+
"t": 125,
24+
"b": 25
25+
},
26+
"width": 600,
27+
"height": 400
28+
}
29+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"data": [
3+
{
4+
"showlegend": true,
5+
"coloraxis": "coloraxis",
6+
"x": [
7+
"apples",
8+
"apples",
9+
"apples",
10+
"apples",
11+
"lemons",
12+
"lemons"
13+
],
14+
"y": [
15+
"red",
16+
"red",
17+
"yellow",
18+
"green",
19+
"yellow",
20+
"yellow"
21+
],
22+
"z": [
23+
"1",
24+
"2",
25+
"3",
26+
"4",
27+
"5",
28+
"6"
29+
],
30+
"histfunc": "sum",
31+
"type": "histogram2dcontour",
32+
"name": "histogram2dcontour"
33+
}
34+
],
35+
"layout": {
36+
"coloraxis": {
37+
"colorscale": [[0, "blue"], [1, "red"]],
38+
"reversescale": true,
39+
"showscale": false
40+
},
41+
"title": "<i>histogram2dcontour</i> legend with <b>coloraxis</b>",
42+
"margin": {
43+
"t": 125,
44+
"b": 25
45+
},
46+
"width": 600,
47+
"height": 400
48+
}
49+
}

0 commit comments

Comments
 (0)