Commit 2c3376e5996ab7ef078834df9cfd5a1b972f58be
1 parent
59100bec
graph updates
Showing
1 changed file
with
0 additions
and
3 deletions
datalets/graph-datalet/graph-datalet.html
| @@ -148,7 +148,6 @@ Example: | @@ -148,7 +148,6 @@ Example: | ||
| 148 | scale = (1.0); | 148 | scale = (1.0); |
| 149 | //translate = [(width-scale*width)/2, ((height-scale*height)/4)]; | 149 | //translate = [(width-scale*width)/2, ((height-scale*height)/4)]; |
| 150 | translate = [0, 0]; | 150 | translate = [0, 0]; |
| 151 | - console.log("w: " + width + " h:" + height); | ||
| 152 | this.svg.transition() | 151 | this.svg.transition() |
| 153 | .duration(750) | 152 | .duration(750) |
| 154 | .attr("transform", "translate(" + translate + ")scale(" + scale + ")") | 153 | .attr("transform", "translate(" + translate + ")scale(" + scale + ")") |
| @@ -237,7 +236,6 @@ Example: | @@ -237,7 +236,6 @@ Example: | ||
| 237 | 236 | ||
| 238 | zoom: function() { | 237 | zoom: function() { |
| 239 | svg.attr("transform", "translate(" + d3.event.translate + ")scale(" + d3.event.scale + ")"); | 238 | svg.attr("transform", "translate(" + d3.event.translate + ")scale(" + d3.event.scale + ")"); |
| 240 | - console.log(d3.event.scale); | ||
| 241 | }, | 239 | }, |
| 242 | 240 | ||
| 243 | text: function (t) | 241 | text: function (t) |
| @@ -361,7 +359,6 @@ Example: | @@ -361,7 +359,6 @@ Example: | ||
| 361 | g.nodes[0].x = this.width / 2; | 359 | g.nodes[0].x = this.width / 2; |
| 362 | g.nodes[0].y = this.height / 8; | 360 | g.nodes[0].y = this.height / 8; |
| 363 | this.buildGraph(g); | 361 | this.buildGraph(g); |
| 364 | - console.log(g.nodes.length); | ||
| 365 | } | 362 | } |
| 366 | }); | 363 | }); |
| 367 | </script> | 364 | </script> |