Viewing a saved revision (read-only)
45e5d40e71da41bd84eed445f7ef30b8
Activity6_Task2
This bar chart shows the percentage distribution of IMDb rating categories across six film genres, with each genre’s stacked bar summing to 100% to reveal how ratings differ by type. The visualization uses d3.v7’s `d3.stack()` and `d3.scaleOrdinal()` for the stacked segments, plus `d3.scaleLinear()`, `d3.scaleBand()`, and D3 axes for positioning. SVG rendering is employed, with mouseover events showing precise percentages via a tooltip. The data comes from the visible CSV file, and colors map to five rating ranges from below 5.0 to above 8.5.
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%.