aboutsummaryrefslogtreecommitdiffstats
path: root/public/javascripts/stats-graphs.js
diff options
context:
space:
mode:
authorMark Longair <mhl@pobox.com>2013-08-19 17:05:44 +0100
committerMark Longair <mhl@pobox.com>2013-10-15 13:56:05 +0100
commit18cded9d726bfb8002b4be0cb1312a0b9905debc (patch)
treef4eba840d65d9384582f3e49047b89acd001671c /public/javascripts/stats-graphs.js
parent45926d2ce7017b81f0a5f80823315dd1c8335d19 (diff)
Rotate labels on the x-axis by 90 degrees
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.
Diffstat (limited to 'public/javascripts/stats-graphs.js')
-rw-r--r--public/javascripts/stats-graphs.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/javascripts/stats-graphs.js b/public/javascripts/stats-graphs.js
index 73e19a6fc..f738427ae 100644
--- a/public/javascripts/stats-graphs.js
+++ b/public/javascripts/stats-graphs.js
@@ -19,7 +19,7 @@ $(document).ready(function() {
}
graph_div.css('width', '700px');
- graph_div.css('height', '400px');
+ graph_div.css('height', '600px');
dataset = [
{'color': 'orange',
@@ -58,6 +58,7 @@ $(document).ready(function() {
options = {
'xaxis': {
'ticks': graph_data.x_ticks,
+ 'rotateTicks': 90
},
'yaxis': {
'min': 0,