Looking to create a unique ratings bar for my website, I have some questions that need answering. Take a look at the codepen link to see what I've come up with so far.
My main query is about incorporating two different colors for Likes (green) and Dislikes (red) within the same bar, similar to YouTube's rating system. How can I achieve this separation while maintaining one cohesive bar?
Secondly,
I'm working with Rails (no Rails expertise required for your response), and my code for displaying Likes is <%= @movies.likes.size %>
(e.g. 5000) and Dislikes is
<%= @movies.dislikes.size %>
(e.g. 3000). With such large numbers for the width percentage, how can I adjust it proportionally to accurately fit the bar? Thank you for your help.