aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/dashboard.js
Commit message (Collapse)AuthorAgeLines
* .js-make-bar-chart now accepts custom chart/bar dimensionsZarino Zappia2018-09-13-2/+4
| | | | | | We needed this for Collideoscope, where we’re displaying small bar charts on the Statistics page, and the default bar height of 30px was much too small when the chart was reduced in size.
* make fixed reports line on reports graph optionalStruan Donald2018-09-12-11/+16
| | | | | Collideoscope doesn't have fixed reports so only add a line for fixed reports if there is data.
* do not generate labels for empty dashboard graphsStruan Donald2018-09-12-0/+3
| | | | | Avoid a JS error if a line graph has no points. This is mostly useful for collideoscope where we only want to show one line.
* No longer horizontally align label with JS.Martin Wright2018-04-06-3/+1
| | | | | Fixes positioning bugs in all versions of IE due to calculating the wrong horizontal position.
* Don't run through this JavaScript in IE9Martin Wright2018-04-06-0/+3
|
* [UK] Properly align Dashboard bar chart value labelsZarino Zappia2018-03-01-2/+3
|
* [UK] Linebreak long Y-axis labels on Dashboard bar chartZarino Zappia2018-03-01-2/+22
| | | | | | | | | Y-axis labels in the Dashboard ranking tables now break onto multiple lines if they are more than 4 words long. /web/vendor/chart.min.js showing as modified because we updated it to include a recent fix to label alignment on vertical scales: https://github.com/mysociety/Chart.js/commit/4130c31
* Switch on monotone cubic interpolation.Matthew Somerville2018-01-09-0/+5
| | | | This prevents e.g. the all reports graph dipping down.
* Fix colour wrapping bug, where it only added red.Matthew Somerville2017-12-19-2/+2
| | | | | As colours.length increased as colours were added, it would always return the first entry.
* Make sure bar chart is given enough colours.Matthew Somerville2017-12-18-0/+4
|
* Add bar chart functionality, for area summary pageZarino Zappia2017-12-15-43/+147
|
* New version of /reports main page.Matthew Somerville2017-07-14-0/+142
This is a much broader summary page, plus a body name autocomplete. This was originally implemented for fixmystreet.com in 8a6a4ccb7. It also adds '(no longer exists)' in the autocomplete next to bodies not covering any areas. You can supply the `--table` argument to `update-all-reports` to generate the old-style data.