summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-12-08 13:13:48 +0200
committerAlon Levy <alon@pobox.com>2014-12-08 13:13:48 +0200
commit9fa8d43eeabe8046423a30922918c21adef14458 (patch)
tree726b923fc010aa08ce7452180cd892b680497398 /src
parent4557b6d22fcd9c37f13eeb380f70df0a60ca3d88 (diff)
more wip: need to figure out exactly what I'm doing with the linkswip/links-reorder-by-selection
Diffstat (limited to 'src')
-rw-r--r--src/rz_core.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rz_core.js b/src/rz_core.js
index 7033e3b6..6fe5df0f 100644
--- a/src/rz_core.js
+++ b/src/rz_core.js
@@ -628,8 +628,10 @@ function tick(e) {
.data(force.nodes(), function(d) {
return d.id;
});
- var link = vis.select("#link-group").selectAll("path.link")
- .data(graph.links());
+ var link = vis.selectAll("path.link")
+ .data(graph.links(), function(d) {
+ return d.id;
+ });
var linktext = vis.selectAll(".linklabel").data(graph.links());
function transform(d) {