Skip to content

Commit 0539e28

Browse files
committed
test: add colorbars to colorscale_contraint mock
1 parent 860ccee commit 0539e28

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed
1.88 KB
Loading

test/image/mocks/colorscale_constraint.json

+18-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
"color": [1,2,3,4],
77
"cmin": 2,
88
"cmax": 3,
9-
"showscale": true
9+
"colorbar": {
10+
"title": "trace 0",
11+
"len": 0.3,
12+
"y": 0,
13+
"yanchor": "bottom"
14+
}
1015
}
1116
}, {
1217
"x": [1,2,3,4,5],
@@ -15,7 +20,12 @@
1520
"color": [1,2,3,4],
1621
"cmin": 1,
1722
"cmax": 4,
18-
"showscale": false
23+
"colorbar": {
24+
"title": "trace 1",
25+
"len": 0.3,
26+
"y": 0.3,
27+
"yanchor": "bottom"
28+
}
1929
}
2030
}, {
2131
"x": [1,2,3,4],
@@ -24,7 +34,12 @@
2434
"marker": {
2535
"color": [0,0,0,0],
2636
"size": 10,
27-
"showscale": false
37+
"colorbar": {
38+
"title": "trace 2",
39+
"len": 0.3,
40+
"y": 0.6,
41+
"yanchor": "bottom"
42+
}
2843
}
2944
}],
3045
"layout": {

0 commit comments

Comments
 (0)