diff --git a/datalets/graph-datalet/demo/demo-clustering-2.html b/datalets/graph-datalet/demo/demo-clustering-2.html index f42fec8..9008450 100755 --- a/datalets/graph-datalet/demo/demo-clustering-2.html +++ b/datalets/graph-datalet/demo/demo-clustering-2.html @@ -3,32 +3,44 @@ Demo Graph with node clustering - + + - - + loadDoc(); + +

Graph with clustering

-
- + +
\ No newline at end of file diff --git a/datalets/graph-datalet/demo/demo-clustering.html b/datalets/graph-datalet/demo/demo-clustering.html index dafad8b..edbfe68 100755 --- a/datalets/graph-datalet/demo/demo-clustering.html +++ b/datalets/graph-datalet/demo/demo-clustering.html @@ -4,21 +4,33 @@ Demo Graph with node clustering + @@ -27,7 +39,7 @@ -
+
\ No newline at end of file diff --git a/datalets/graph-datalet/graph-datalet.html b/datalets/graph-datalet/graph-datalet.html index 52d20a6..4e5f9c3 100755 --- a/datalets/graph-datalet/graph-datalet.html +++ b/datalets/graph-datalet/graph-datalet.html @@ -288,7 +288,7 @@ Example: _this.gnodes.attr("cx", function (t) { return t.x = Math.max(25, Math.min(_this.width - 50, t.x)) }).attr("cy", function (t) { - return t.y = Math.max(8, Math.min(600, t.y)) + return t.y = Math.max(8, Math.min(_this.height, t.y)) }); _this.glinks.attr("x1", function (t) {