Skip to content

Commit

Permalink
use .venn-area to select groups
Browse files Browse the repository at this point in the history
  • Loading branch information
benfred committed Oct 29, 2016
1 parent 2df538e commit 475b2f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "venn.js",
"version": "0.2.12",
"version": "0.2.13",
"author": "Ben Frederickson <ben@benfrederickson.com> (http:/www.benfrederickson.com)",
"url": "https://github.com/benfred/venn.js/issues",
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/diagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions venn.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 475b2f0

Please sign in to comment.