Permalink
Browse files

Merge pull request #1912 from sylvinus/patch-3

Fixes #1664
  • Loading branch information...
2 parents 79a2073 + 8a38dad commit a42ff9705dcda2b12e9700eae16070c3bb602aac @liquidpele liquidpele committed on GitHub Jan 2, 2017
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/models/scatter.js
@@ -217,6 +217,10 @@ nv.models.scatter = function() {
// inject series and point index for reference into voronoi
if (useVoronoi === true) {
+
+ // nuke all voronoi paths on reload and recreate them
+ wrap.select('.nv-point-paths').selectAll('path').remove();
+
var vertices = d3.merge(data.map(function(group, groupIndex) {
return group.values
.map(function(point, pointIndex) {
@@ -264,8 +268,6 @@ nv.models.scatter = function() {
}
});
- // nuke all voronoi paths on reload and recreate them
- wrap.select('.nv-point-paths').selectAll('path').remove();
var pointPaths = wrap.select('.nv-point-paths').selectAll('path').data(voronoi);
var vPointPaths = pointPaths
.enter().append("svg:path")

0 comments on commit a42ff97

Please sign in to comment.