Turn Borda Bar graph on its side. This accomodates longer candidate names and longer candidate lists.
fixed licensing information for selectricity
merged in changes from live version
fixed colors on graphs
input license information so that the work can be under the AGPLv3
The legend is now hidden when there is only one color to display on a graph.
Extended the COLORS array in graph controller so that elections with multiple candidates won't have graphs with dangerously similar colors. After 10 candidates though, they're on their own. Also added captions to the pref_tables of the Schulze method to quickly explain how to read them. Feel free to edit/move them. I tried to make them quick, explanatory and look-alikes to the rest of the text, but definitely failed on the look-alike requirement. Please fix...
Added the Gruff library to the lib/ directory of the the rails folder, and the environment require statement now uses that one. Made modifcations to Gruff library to alternate placement of labels and crowded bar graphs. Also made a table for approval vote method.
Both quickvotes and full-size elections use the same partial in views/voter ('sortable_vote') for the ajax voting. One gimmick seems to be that the button is appearing above the actual list of candidates which is kinda odd, but doesn't seem to be affecting wah'ts being committed in anyway. Also made some modifications to the graphs and the graphs to help with how their displayed in the new theme, hopefully it looks a litle better. Don't quite know how to improve the results page further for quickvotes... will try keeping them uncomputed until people ask for them?
Refined the CSS and fixed some of the more recent issues.
Clean up a deprecation warning and another warning.
Allow custimizable graph sizes, to fit with newly modular results page. Also, beginning a method that will allow users to track the QuickVotes they create.
Put in a pie graph for Plurality votes. ALso slimmed down victories_and_ties method in rubyvote/condorcet.rb considerably.
Finished organzing preferential vote tables into one partial. Also changed RubyVote's victories_and_ties method to return a hash of hashes which stores both victories and ties.
Streamlined some graphign contorller methods and took out the 'voters_per_day' method in the results page. Merge from mako.
Added Sparklines controller and dependency, see README. Created method and table for margins of victory (i.e won by how much) and ties, in rubyvote, has already been svn'd.
Add nil-guards to the graphs
Modified graphs to ahve a 4 color scheme, but it isn't the full palette of selectricity yet , that will be on next commit. LAso modified several voting methods within RubyVote to have more useful instance variables and accessors available in the results class. the quickvote results view has been updated to include a partial for displaying a condorcet vote table, w hich is strangely appearing below the footer on the results page, it seems to be displaying the correct data however.
Fixed choices_positions to use GruffGraff class. Initialize method now had a way of dealign with multiple data arrays being passed in. Next need to compensate for giving each set of data it's own name, possible a hash with "name" => data as the key, value pairs...
Added the choices position and get_posititons_info to graph controller. Right now, since the graph graphs a different set of data for each candidate, the data function has to be called multiple times and I'm not sure how to do it/if it's possible within the class definition. As such, I've defined everything within the choices_position method for now. I'll be trying to figure out the kinks next. Overall, the graph is very confusing and might not be very useful in the end, but the data it uses is.