summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2012-11-25 11:08:17 +0100
committerAurélien Bompard <aurelien@bompard.org>2012-11-25 11:08:17 +0100
commitd14af4bbb8c6986fc0d893c4c17ae7d5703683cb (patch)
tree97aa057faab5bd4850d0fdcf563ecc76fdeaca2f
parent8ed3065c557beb96ac8fc056c7290bcdaa494c84 (diff)
downloadhyperkitty-d14af4bbb8c6986fc0d893c4c17ae7d5703683cb.tar.gz
hyperkitty-d14af4bbb8c6986fc0d893c4c17ae7d5703683cb.tar.xz
hyperkitty-d14af4bbb8c6986fc0d893c4c17ae7d5703683cb.zip
Make graph height dynamic
-rw-r--r--hyperkitty/templates/recent_activities.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/hyperkitty/templates/recent_activities.html b/hyperkitty/templates/recent_activities.html
index 84a8d5d..61bc7a2 100644
--- a/hyperkitty/templates/recent_activities.html
+++ b/hyperkitty/templates/recent_activities.html
@@ -20,7 +20,7 @@
w = 500,
h = 300,
x = pv.Scale.ordinal(pv.range(32)).splitBanded(0, w, 4/5),
- y = pv.Scale.linear(0, {{evolution|length}}).range(0, h);
+ y = pv.Scale.linear(0, Math.max.apply(null, data)+1).range(0, h);
var vis = new pv.Panel()
.width(w)