Commit a3eb26529f25724a94e9a24a82ab9074e7bf4739
1 parent
73cc8795
graph datalet updates
Showing
1 changed file
with
6 additions
and
8 deletions
datalets/graph-datalet/graph-datalet.html
... | ... | @@ -248,13 +248,6 @@ Example: |
248 | 248 | _this.$.dialog.open();*/ |
249 | 249 | }, |
250 | 250 | |
251 | - openModal : function(t) { | |
252 | - var e = t.split(" ").join("_").toLowerCase(); | |
253 | - $(".modal-content").hide(); | |
254 | - $("." + e).fadeIn(); | |
255 | - $("#modal").modal() | |
256 | - }, | |
257 | - | |
258 | 251 | /** |
259 | 252 | * It is called after the element’s template has been stamped and all elements inside the element’s local |
260 | 253 | * DOM have been configured (with values bound from parents, deserialized attributes, or else default values) |
... | ... | @@ -281,7 +274,12 @@ Example: |
281 | 274 | height: "100%" |
282 | 275 | }).attr("viewBox", "0 0 " + this.width + " " + this.height).attr("pointer-events", "all").style("position", "absolute").attr("style", "transform:translate(0px)"); |
283 | 276 | |
284 | - var g = JSON.parse(this.data); | |
277 | + /*var g = JSON.parse(this.data); | |
278 | + g.nodes[0].x = this.width / 2; | |
279 | + g.nodes[0].y = this.height / 2; | |
280 | + this.buildGraph(g);*/ | |
281 | + | |
282 | + var g = this.data; | |
285 | 283 | g.nodes[0].x = this.width / 2; |
286 | 284 | g.nodes[0].y = this.height / 2; |
287 | 285 | this.buildGraph(g); | ... | ... |