diff --git a/package.json b/package.json index ba79723..76f5c30 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "venn.js", - "version": "0.2.12", + "version": "0.2.13", "author": "Ben Frederickson (http:/www.benfrederickson.com)", "url": "https://github.com/benfred/venn.js/issues", "devDependencies": { diff --git a/src/diagram.js b/src/diagram.js index c58067a..eb8d5ff 100644 --- a/src/diagram.js +++ b/src/diagram.js @@ -62,7 +62,7 @@ export function VennDiagram() { // to properly transition intersection areas, we need the // previous circles locations. load from elements var previous = {}, hasPrevious = false; - svg.selectAll("g path").each(function (d) { + svg.selectAll(".venn-area path").each(function (d) { var path = select(this).attr("d"); if ((d.sets.length == 1) && path) { hasPrevious = true; @@ -91,7 +91,7 @@ export function VennDiagram() { }; // update data, joining on the set ids - var nodes = svg.selectAll("g") + var nodes = svg.selectAll(".venn-area") .data(data, function(d) { return d.sets; }); // create new nodes diff --git a/venn.js b/venn.js index bab7196..5c22815 100644 --- a/venn.js +++ b/venn.js @@ -1255,7 +1255,7 @@ // to properly transition intersection areas, we need the // previous circles locations. load from elements var previous = {}, hasPrevious = false; - svg.selectAll("g path").each(function (d) { + svg.selectAll(".venn-area path").each(function (d) { var path = d3Selection.select(this).attr("d"); if ((d.sets.length == 1) && path) { hasPrevious = true; @@ -1284,7 +1284,7 @@ }; // update data, joining on the set ids - var nodes = svg.selectAll("g") + var nodes = svg.selectAll(".venn-area") .data(data, function(d) { return d.sets; }); // create new nodes