diff options
author | Pierre-Yves Chibon <pingou@pingoured.fr> | 2012-04-11 22:49:36 +0200 |
---|---|---|
committer | Pierre-Yves Chibon <pingou@pingoured.fr> | 2012-04-11 22:49:36 +0200 |
commit | da96181ab6e355a2576f050cdef7948c05d37635 (patch) | |
tree | 4b48ccf3d14646036e86fe13b3f898ede14b2a77 | |
parent | 70d76981d2c8ec696e0f755c11b1ee05e85a658a (diff) | |
download | hyperkitty-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.html | 11 |
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) |