diff options
author | Mark Longair <mhl@pobox.com> | 2013-08-20 10:07:20 +0100 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2013-08-20 12:11:45 +0100 |
commit | 860cd9ec9935220852ae17498c8b9b7357a2cc3a (patch) | |
tree | 6cc5f9dbd14a3fe7043edd3a7bccdb314427a074 | |
parent | b75d79b08227192b75e4f3b24ce4e762f4286ef9 (diff) |
Reduce the number of public bodies per graph
It seems to be difficult to customize the display of the
tick labels (see the body-statistics-rotated-label branch
for an as-yet-not-working alternative) so for the moment
just reduce the number of public bodies shown per graph
from 10 to 8.
-rw-r--r-- | app/controllers/public_body_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/public_body_controller.rb b/app/controllers/public_body_controller.rb index ebf159d79..9f692c5ba 100644 --- a/app/controllers/public_body_controller.rb +++ b/app/controllers/public_body_controller.rb @@ -155,7 +155,7 @@ class PublicBodyController < ApplicationController raise ActiveRecord::RecordNotFound.new("Page not enabled") end - per_graph = 10 + per_graph = 8 minimum_requests = AlaveteliConfiguration::minimum_requests_for_statistics # Make sure minimum_requests is > 0 to avoid division-by-zero minimum_requests = [minimum_requests, 1].max |