+ size = "400x300"
+ #size = "580x300" if @election.candidates.size >= 5
+ size = sprintf "580x%d", @election.candidates.size*22 \
+ if @election.candidates.size >= 5
+
+ if @election.candidates.size >= 5
+ marker_font_size = 17
+ else
+ marker_font_size = 20
+ end
+
+ graph = GruffGraff.new( :graph_type => Gruff::SideBar,