Commit 05c2c2bb5af3755f0c522bdb7715b1ac554c5546
1 parent
525c13d8
graph updates
Showing
1 changed file
with
3 additions
and
3 deletions
datalets/graph-datalet/graph-datalet.html
@@ -246,12 +246,12 @@ Example: | @@ -246,12 +246,12 @@ Example: | ||
246 | return "fill:" + t.color + "; stroke:white" | 246 | return "fill:" + t.color + "; stroke:white" |
247 | }); | 247 | }); |
248 | 248 | ||
249 | + d3.selectAll(".drag").call(force.drag), this.svg.selectAll("g.node").call(this.text); | ||
250 | + | ||
249 | d3.selectAll('circle').attr("style", function(t){ | 251 | d3.selectAll('circle').attr("style", function(t){ |
250 | - return "fill :" + (t.image ? 'url(#image_' + t.id +')' : t.color) | 252 | + return (t != undefined) ? "fill :" + (t.image ? 'url(#image_' + t.id +')' : t.color) : ""; |
251 | }); | 253 | }); |
252 | 254 | ||
253 | - d3.selectAll(".drag").call(force.drag), this.svg.selectAll("g.node").call(this.text); | ||
254 | - | ||
255 | }, | 255 | }, |
256 | 256 | ||
257 | zoom: function() { | 257 | zoom: function() { |