Car Sales
This stacked bar chart displays the percentage of movie ratings across six genres, showing how rating distributions differ by genre. Each horizontal bar is segmented by five rating categories from “below 5.0” to “above 8.5,” with hovering revealing exact percentages via a tooltip. The visualization uses D3 v7’s `d3.stack()` and `d3.scaleOrdinal()` to generate SVG rectangles, with axes created through `d3.axisLeft()` and `d3.axisBottom()`. Data is loaded from a CSV file, and the dark theme is styled via external CSS.
AI-generated descriptionThe impact of genre on movie ratings
This stacked bar chart gives the percentage of each rating level within different movie genres. The aim is to show the impact of genre on movie ratings. When the mouse hovers over each bar, you can see pop-ups of accurate percentage of each rating level within each genre. Total percentage is 1, representing 100%.