Skip to content

Commit e1604d4

Browse files
committed
Add svg image layer for heatmaps
1 parent 0366caa commit e1604d4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/plot_api/plot_api.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2657,6 +2657,7 @@ function makeCartesianPlotFramwork(gd, subplots) {
26572657
// 4. scatter
26582658
// 5. box plots
26592659
function plotLayers(svg) {
2660+
svg.append('g').classed('imagelayer', true);
26602661
svg.append('g').classed('maplayer', true);
26612662
svg.append('g').classed('barlayer', true);
26622663
svg.append('g').classed('errorlayer', true);

src/traces/heatmap/plot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ function plotOne(gd, plotinfo, cd) {
368368

369369
// put this right before making the new image, to minimize flicker
370370
fullLayout._paper.selectAll('.'+id).remove();
371-
plotinfo.plot.select('.maplayer').append('svg:image')
371+
plotinfo.plot.select('.imagelayer').append('svg:image')
372372
.classed(id, true)
373373
.datum(cd[0])
374374
.attr({

0 commit comments

Comments
 (0)