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
commitaa4c00d044df7ce19467badcdd96dba5e6f65b8b (patch)
tree97aa057faab5bd4850d0fdcf563ecc76fdeaca2f
parentbe245a2446c37da342f7ca617b72f33a7888855e (diff)
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)