Overview
Using the Pie chart type with Ranked Choice polls produces incorrect results. Each option receives one vote regardless of how the user actually ranked their choices. This behavior makes the chart misleading and incompatible with the ranked choice logic.
Steps to reproduce
- Click Build Poll in the composer.
- Open Advanced options (gear icon).
- Fill out the poll fields (optional), but select “Pie” instead of “Bar” for the chart type.
- Scroll back to the top and select Ranked Choice as the poll type.
- Save and publish the poll.
At this point, the poll will be using the Pie chart type, which is not designed to work with ranked choice voting.
Expected results
The system should either:
- Automatically switch to the Bar chart when “Ranked Choice” is selected, or
- Prevent the user from selecting Pie for ranked choice polls altogether.
Observed results
The poll uses the Pie chart and counts one vote per option, even if a user ranked only one or a few choices. The chart displays all options equally, making the results meaningless:
Additional context
Temporary workaround applied:
poll = Poll.find_by(id: 123)
poll.chart_type = 'bar'
poll.save
Manually updating the poll’s chart type from pie
to bar
in the console corrects the issue and restores accurate results: