From 5b516af7470a7bcd48bb7059efb2db72a6f2d75e Mon Sep 17 00:00:00 2001 From: Luigi Serra Date: Thu, 14 Jul 2016 12:19:43 +0200 Subject: [PATCH] updates --- datalets/graph-datalet/demo/demo-clustering-2.html | 52 ++++++++++++++++++++++++++++++++-------------------- datalets/graph-datalet/demo/demo-clustering.html | 20 ++++++++++++++++---- datalets/graph-datalet/graph-datalet.html | 2 +- 3 files changed, 49 insertions(+), 25 deletions(-) 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) { -- libgit2 0.21.4