diff options
-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) |