aboutsummaryrefslogtreecommitdiffstats
path: root/public/javascripts/stats-graphs.js
Commit message (Collapse)AuthorAgeLines
* Add a tooltip to each bar of the public body stats graphsMark Longair2013-10-15-1/+35
| | | | | Since the rotated public body names on the x-axis may be difficult to read, it's helpful to have them in a tooltip as well.
* Make bars in public body statistics charts clickableMark Longair2013-10-15-0/+13
| | | | | | | | | Now if you click on the bar representing statistics for a particular public body, it will take you to that public body's page. In addition, the bars are highlighted when you hover over them.
* Rotate labels on the x-axis by 90 degreesMark Longair2013-10-15-1/+2
| | | | | | This commit adds the tickrotor extension to Flot, which allows rotated labels for public bodies. This extension is licensed under either MPL 1.1, GPL 2.0 or LGPL 2.1.
* Refactor calculation of statisticsMark Longair2013-08-20-0/+5
| | | | | | Move the calculation of statistics on public bodies into the PublicBody model, so that there's less logic in the controller.
* Refer to Javascript object members more idiomaticallyMark Longair2013-08-20-12/+12
| | | | | Crockford / JSLint suggests using dot notation for referring to members of objects where possible.
* Add a page with experimental statistics on public bodiesMark Longair2013-08-20-0/+82
The statistics on the status of the requests to a particular public body are too slow to calculate on-the-fly, so this commit adds: * Extra columns on public_bodies to store counts of the successful, not held, and overdue request counts for each public body. * A rake task which should be run periodically to update the overdue request count column. If Javascript is not available, the summary statistics are shown as tables. If Javascript is available, graphs are drawn with Flot.