diff --git a/datalets/graph-datalet/graph-datalet.html b/datalets/graph-datalet/graph-datalet.html index 593eb61..a0d626b 100644 --- a/datalets/graph-datalet/graph-datalet.html +++ b/datalets/graph-datalet/graph-datalet.html @@ -248,13 +248,6 @@ Example: _this.$.dialog.open();*/ }, - openModal : function(t) { - var e = t.split(" ").join("_").toLowerCase(); - $(".modal-content").hide(); - $("." + e).fadeIn(); - $("#modal").modal() - }, - /** * It is called after the element’s template has been stamped and all elements inside the element’s local * DOM have been configured (with values bound from parents, deserialized attributes, or else default values) @@ -281,7 +274,12 @@ Example: height: "100%" }).attr("viewBox", "0 0 " + this.width + " " + this.height).attr("pointer-events", "all").style("position", "absolute").attr("style", "transform:translate(0px)"); - var g = JSON.parse(this.data); + /*var g = JSON.parse(this.data); + g.nodes[0].x = this.width / 2; + g.nodes[0].y = this.height / 2; + this.buildGraph(g);*/ + + var g = this.data; g.nodes[0].x = this.width / 2; g.nodes[0].y = this.height / 2; this.buildGraph(g);