From 542be75b7f71378146c522c1e681160a4b4f3564 Mon Sep 17 00:00:00 2001 From: LV-426 Date: Tue, 11 Nov 2014 19:08:44 +0200 Subject: append rhizi node id to element to enable data->visual mapping --- scripts/rz_core.js | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') diff --git a/scripts/rz_core.js b/scripts/rz_core.js index 6f4a3aeb..b31f2360 100644 --- a/scripts/rz_core.js +++ b/scripts/rz_core.js @@ -240,6 +240,7 @@ function update(no_relayout) { var nodeEnter = node.enter() .append("g").attr('class', 'node') + .attr('id', function(d){ return d.id; }) // append node id to enable data->visual mapping .attr('visibility', 'hidden') // made visible on first tick .on("click", function(d, i) { if (d3.event.defaultPrevented) { -- cgit v1.3.1