fairvotereform / RankIt

https://rankit.vote
1 stars 2 forks source link

Results view: Show inactive ballots #142

Closed ggordn3r closed 4 years ago

ggordn3r commented 4 years ago

When all of the choices made by a given ballot have been eliminated, that ballot can no longer be counted in the poll. This is known as an "exhausted" or "inactive" ballot. In the current implementation, these ballots are simply ignored. But the change to show the actual vote counts (#143) could create confusion since the total vote count slowly decreases round by round.

The solution is to add a bar to the graph that accounts for inactive ballots, as in the example below.

How to calculate inactive ballots The # of inactive ballots in a given round is not currently saved in any variable. It can be calculated reliably by subtracting the sum of the ballots counted in the current round from the sum of votes in round 0 (i.e. the original # of ballots)

image

Once this is added, the disclaimer in the footer that "Percentages may not add up to 100..." should be removed. See screenshot: Screenshot (371)

ggordn3r commented 4 years ago

Looks good to me! One outstanding request. We need to exclude inactive ballots in the calculations for single-winner and include them for multi-winner.

: https://rankit.skelpo.com/results/0s4l9EbBvhOY1PGgv3Ms/9