Skip to content

Commit 76ba24b

Browse files
committed
remove nodes inside scatterlayer in scatterternary plot step
1 parent 92da0e3 commit 76ba24b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/traces/scatterternary/plot.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ var scatterPlot = require('../scatter/plot');
1313

1414

1515
module.exports = function plot(ternary, data) {
16+
var plotContainer = ternary.plotContainer;
17+
18+
// remove all nodes inside the scatter layer
19+
plotContainer.select('.scatterlayer').selectAll('*').remove();
20+
1621
// mimic cartesian plotinfo
1722
var plotinfo = {
1823
x: function() { return ternary.xaxis; },
1924
y: function() { return ternary.yaxis; },
20-
plot: ternary.plotContainer
25+
plot: plotContainer
2126
};
2227

2328
var calcdata = new Array(data.length),

0 commit comments

Comments
 (0)