Commit 5ee5aac7b378b7f2b58e15056290afbe745b3a69

Authored by Luigi Serra
1 parent cf7f48a3

updates

datalets/graph-datalet/graph-datalet.html
@@ -270,7 +270,7 @@ Example: @@ -270,7 +270,7 @@ Example:
270 }, 270 },
271 271
272 tick : function () { 272 tick : function () {
273 - if(_this.gnodes != undefined && _this.graph.nodes.length > 0) 273 + if(_this.gnodes != undefined && _this.graph.nodes != undefined && _this.graph.nodes.length > 0)
274 { 274 {
275 d3.selectAll("g foreignObject").attr("x", function (t) { 275 d3.selectAll("g foreignObject").attr("x", function (t) {
276 return t.x + (t.r ? 0.8 * t.r : 15) 276 return t.x + (t.r ? 0.8 * t.r : 15)