X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/823d530ba46c1fb3518c4deef0081738503837eb..df770407edbb2ed9f55b0a3b557f3b51a9e9f4e3:/app/controllers/graph_controller.rb?ds=sidebyside diff --git a/app/controllers/graph_controller.rb b/app/controllers/graph_controller.rb index 814eb36..b80b5d3 100644 --- a/app/controllers/graph_controller.rb +++ b/app/controllers/graph_controller.rb @@ -74,7 +74,7 @@ class GraphController < ApplicationController :data => data, :interval_labels => labels, :title => "Voters Over Time", - :size => "700x400", + :size => "270x230", :x_axis_label => scale, :y_axis_label => "Number of Votes") send_data(*graph.output) @@ -133,7 +133,7 @@ class GraphController < ApplicationController data[names[candidate]] = votes end - pie = GruffGraff.new ( :graph_type => Gruff::Pie, + pie = GruffGraff.new( :graph_type => Gruff::Pie, :title => "Percentage of First Place Votes", :data => data) send_data(*pie.output)