Put in a pie graph for Plurality votes. ALso slimmed down victories_and_ties method...
[selectricity] / app / views / quickvote / results.rhtml
index 799459df0f9704d5079271d4a37e34fa979a3152..3d5468ce7782bd2d9095033fcde95a545abde31d 100644 (file)
@@ -176,10 +176,10 @@ by several other names.</p>
 <% end %>
 </table>
 
-<%= render :partial => 'victories_ties' %>
-<%= render :partial => 'pref_table' %>
+<%= render :partial => 'pref_tables' %>
 
-<%= image_tag( graph_url( :action => 'votes_per_day', :id => @election ) ) %><br />
-<%= image_tag( graph_url( :action => 'votes_per_interval', :id => @election ))%><br />
+<%=image_tag( graph_url( :action => 'votes_per_interval', :id => @election ))%>
+<br />
 <%= image_tag( graph_url( :action => 'borda_bar', :id => @election ) ) %><br />
-<%= image_tag( graph_url( :action => 'choices_positions', :id => @election ) ) %>
+<%= image_tag( graph_url( :action => 'choices_positions', :id => @election ) ) %><br />
+<%= image_tag(graph_url( :action => 'plurality_pie', :id => @election ) )%>

Benjamin Mako Hill || Want to submit a patch?