From 18cded9d726bfb8002b4be0cb1312a0b9905debc Mon Sep 17 00:00:00 2001 From: Mark Longair Date: Mon, 19 Aug 2013 17:05:44 +0100 Subject: 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. --- public/javascripts/stats-graphs.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'public/javascripts/stats-graphs.js') 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, -- cgit v1.2.3