Commit 4efa8d24b5fb14332a391e79f2fa608eeef8794b
1 parent
5b516af7
updates
Showing
1 changed file
with
1 additions
and
1 deletions
datalets/graph-datalet/graph-with-clustering-datalet.html
... | ... | @@ -463,7 +463,7 @@ Example: |
463 | 463 | _this.svgNodes.attr("cx", function (t) { |
464 | 464 | return t.x = Math.max(25, Math.min(_this.width - 50, t.x)) |
465 | 465 | }).attr("cy", function (t) { |
466 | - return t.y = Math.max(8, Math.min(600, t.y)) | |
466 | + return t.y = Math.max(8, Math.min(_this.height, t.y)) | |
467 | 467 | }); |
468 | 468 | |
469 | 469 | _this.svgLinks.attr("x1", function (t) { | ... | ... |