I’m not sure how best to explain this, but here’s a screenshot of our basic voting system:

In this instance, the item with 54 votes has the highest raw number of votes, representing 39% of total votes (and 39/100 on the progress bar). The other items have much lower votes, which represents very little difference visually on the bar.

How could I go about making the item with 54 votes the “maximum” (or =100% on the progress bar), and have the others scale appropriately? I feel like there is some mathematical function I could use for this, but I’m at a loss. Any ideas?

Edit: Okay my brain finally unfried long enough to figure it out. Divide by the number of votes for the highest item to get the display percentage.