From 18c9f78c024175f696c5da7d6580f4017a367de1 Mon Sep 17 00:00:00 2001 From: knsv Date: Sat, 23 May 2015 10:11:31 +0200 Subject: [PATCH] Adding id attribute for clusters --- lib/create-clusters.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/create-clusters.js b/lib/create-clusters.js index 9310b6f0..af1921b4 100644 --- a/lib/create-clusters.js +++ b/lib/create-clusters.js @@ -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)