We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30b9cc6 commit 8fce07cCopy full SHA for 8fce07c
src/components/shapes/index.js
@@ -94,6 +94,12 @@ function linearToData(ax) { return ax.type === 'category' ? ax.l2c : ax.l2d; }
94
95
shapes.drawAll = function(gd) {
96
var fullLayout = gd._fullLayout;
97
+
98
+ // Remove previous shapes before drawing new in shapes in fullLayout.shapes
99
+ fullLayout._shapeUpperLayer.selectAll('path').remove();
100
+ fullLayout._shapeLowerLayer.selectAll('path').remove();
101
+ fullLayout._subplotShapeLayer.selectAll('path').remove();
102
103
for(var i = 0; i < fullLayout.shapes.length; i++) {
104
shapes.draw(gd, i);
105
}
0 commit comments