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() {