From 0ce33ac5a9c1ecc8aea4f58c6a7feaac747fd40f Mon Sep 17 00:00:00 2001 From: Clyde Balneaves Date: Wed, 1 Jul 2015 15:25:09 -0500 Subject: [PATCH] Changed label ordering to show cluster labels #175 --- lib/create-clusters.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/create-clusters.js b/lib/create-clusters.js index af1921b4..ce96b173 100644 --- a/lib/create-clusters.js +++ b/lib/create-clusters.js @@ -23,9 +23,9 @@ function createClusters(selection, g) { svgClusters.each(function(v) { var node = g.node(v), - thisGroup = d3.select(this), - labelGroup = thisGroup.append("g").attr("class", "label"); + thisGroup = d3.select(this); d3.select(this).append("rect"); + var labelGroup = thisGroup.append("g").attr("class", "label"); addLabel(labelGroup, node, node.clusterLabelPos); });