Skip to content

Commit 10c9914

Browse files
committed
image: put imagelayer underneath heatmap
1 parent 73c0740 commit 10c9914

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

src/plots/cartesian/constants.js

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ module.exports = {
6363
// Layers to keep trace types in the right order
6464
// N.B. each 'unique' plot method must have its own layer
6565
traceLayerClasses: [
66+
'imagelayer',
6667
'heatmaplayer',
6768
'contourcarpetlayer', 'contourlayer',
6869
'funnellayer', 'waterfalllayer', 'barlayer',
15.7 KB
Loading
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"data": [{
3+
"type": "image",
4+
"z": [
5+
[
6+
[255, 0, 0],
7+
[0, 255, 0],
8+
[0, 0, 255]
9+
],
10+
[
11+
[255, 0, 0],
12+
[0, 255, 0],
13+
[0, 0, 255]
14+
]
15+
]
16+
}, {
17+
"type": "heatmap",
18+
"z": [
19+
[-1, 0, 1]
20+
]
21+
}],
22+
"layout": {
23+
"width": 400,
24+
"height": 400,
25+
"title": {
26+
"text": "Image is below heatmap"
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)