We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b94536 commit 58c69e9Copy full SHA for 58c69e9
src/components/images/draw.js
@@ -242,7 +242,7 @@ module.exports = function draw(gd) {
242
var imagesOnSubplot = subplotObj.imagelayer.selectAll('image')
243
// even if there are no images on this subplot, we need to run
244
// enter and exit in case there were previously
245
- .data(imageDataSubplot[subplot] || []);
+ .data(imageDataSubplot[subplot] || [], imgDataFunc);
246
247
imagesOnSubplot.enter().append('image');
248
imagesOnSubplot.exit().remove();
@@ -251,5 +251,6 @@ module.exports = function draw(gd) {
251
setImage.bind(this)(d);
252
applyAttributes.bind(this)(d);
253
});
254
+ imagesOnSubplot.sort(imgSort);
255
}
256
};
0 commit comments