aboutsummaryrefslogtreecommitdiffstats
path: root/public/javascripts/stats-graphs.js
Commit message (Collapse)AuthorAgeLines
* 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.