summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre-Yves Chibon <pingou@pingoured.fr>2012-04-11 22:49:36 +0200
committerPierre-Yves Chibon <pingou@pingoured.fr>2012-04-11 22:49:36 +0200
commitda96181ab6e355a2576f050cdef7948c05d37635 (patch)
tree4b48ccf3d14646036e86fe13b3f898ede14b2a77
parent70d76981d2c8ec696e0f755c11b1ee05e85a658a (diff)
downloadhyperkitty-da96181ab6e355a2576f050cdef7948c05d37635.tar.gz
hyperkitty-da96181ab6e355a2576f050cdef7948c05d37635.tar.xz
hyperkitty-da96181ab6e355a2576f050cdef7948c05d37635.zip
Add the date at the bottom of the graph
-rw-r--r--templates/recent_activities.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/templates/recent_activities.html b/templates/recent_activities.html
index 53f0ef9..67643cc 100644
--- a/templates/recent_activities.html
+++ b/templates/recent_activities.html
@@ -25,8 +25,8 @@ var data = {{evolution}},
var vis = new pv.Panel()
.width(w)
- .height(h)
- .bottom(20)
+ .height(250)
+ .bottom(60)
.left(30)
.right(5)
.top(5);
@@ -39,6 +39,13 @@ var bar = vis.add(pv.Bar)
.bottom(0)
.height(y);
+bar.anchor("bottom").add(pv.Label)
+ .textMargin(5)
+ .textAlign("right")
+ .textBaseline("middle")
+ .textAngle(-Math.PI / 2)
+ .text(function() dates[this.index]);
+
var title = vis.add(pv.Label)
.left(250)
.top(16)