From 05c2c2bb5af3755f0c522bdb7715b1ac554c5546 Mon Sep 17 00:00:00 2001 From: luigser Date: Wed, 3 Feb 2016 16:35:52 +0100 Subject: [PATCH] graph updates --- datalets/graph-datalet/graph-datalet.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/datalets/graph-datalet/graph-datalet.html b/datalets/graph-datalet/graph-datalet.html index 4c9fbca..985fbcf 100755 --- a/datalets/graph-datalet/graph-datalet.html +++ b/datalets/graph-datalet/graph-datalet.html @@ -246,12 +246,12 @@ Example: return "fill:" + t.color + "; stroke:white" }); + d3.selectAll(".drag").call(force.drag), this.svg.selectAll("g.node").call(this.text); + d3.selectAll('circle').attr("style", function(t){ - return "fill :" + (t.image ? 'url(#image_' + t.id +')' : t.color) + return (t != undefined) ? "fill :" + (t.image ? 'url(#image_' + t.id +')' : t.color) : ""; }); - d3.selectAll(".drag").call(force.drag), this.svg.selectAll("g.node").call(this.text); - }, zoom: function() { -- libgit2 0.21.4