Skip to content

Commit

Permalink
Adding id attribute for clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
knsv committed May 23, 2015
1 parent 1fc4161 commit 18c9f78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/create-clusters.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ function createClusters(selection, g) {
svgClusters.enter()
.append("g")
.attr("class", "cluster")
.attr("id",function(v){
var node = g.node(v);
return node.id;
})
.style("opacity", 0);

util.applyTransition(svgClusters, g)
Expand Down

0 comments on commit 18c9f78

Please sign in to comment.