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.
The bar should always be in the last position, below all candidates.
The bar should be labeled: "Inactive (No choices left)"
The bar should behave as others do in all other respects, including #137 and #143
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)
Once this is added, the disclaimer in the footer that "Percentages may not add up to 100..." should be removed. See screenshot:
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.
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)
Once this is added, the disclaimer in the footer that "Percentages may not add up to 100..." should be removed. See screenshot: