From d14af4bbb8c6986fc0d893c4c17ae7d5703683cb Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Sun, 25 Nov 2012 11:08:17 +0100 Subject: Make graph height dynamic --- hyperkitty/templates/recent_activities.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit