Equal-Vote / star-server

STAR Voting is an upgrade to our current way of voting that allows voters to score candidates from 0 to 5. Ultimately, STAR Voting elects candidates who better represent the whole of the electorate. We are building a site that lets everyone from individuals to organizations use STAR Voting to host simple polls or run secure elections.
GNU Affero General Public License v3.0
10 stars 18 forks source link

Update RCV results to use a Sankey diagram #556

Open ArendPeter opened 2 months ago

ArendPeter commented 2 months ago

(it's probably better if #555 is completed first)

The results page needs the following updates

Recommended Library: https://recharts.org/en-US/api/SankeyChart RCV Example: https://ranked.vote/report/us/ak/2022/08/cd (personally I think horizontal would look better but vertical might scale better for mobile or if there are many rounds

Make sure to reference STAR for colors

Current RCV Example

https://dev.star.vote/xt64yy/results image

STAR Example

https://dev.star.vote/t3wmf3/results

image image

ArendPeter commented 2 weeks ago

Here's an updated screenshot of the RCV results image

I'm thinking the sankey diagram could be an extra widget under the Details section

According to best practices, I think we should stick to bar charts for the default widgets, but sankey would be really nice for people who want to dive deaper

https://civicdesign.org/wp-content/uploads/2022/10/CCD-RCV-Best-Practices-Displaying-election-results-2022.pdf