diff options
| author | Aurélien Bompard <aurelien@bompard.org> | 2012-11-25 11:08:17 +0100 |
|---|---|---|
| committer | Aurélien Bompard <aurelien@bompard.org> | 2012-11-25 11:08:17 +0100 |
| commit | aa4c00d044df7ce19467badcdd96dba5e6f65b8b (patch) | |
| tree | 97aa057faab5bd4850d0fdcf563ecc76fdeaca2f | |
| parent | be245a2446c37da342f7ca617b72f33a7888855e (diff) | |
Make graph height dynamic
| -rw-r--r-- | hyperkitty/templates/recent_activities.html | 2 |
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) |
