Activity6
This stacked bar chart shows the percentage distribution of IMDb ratings across six movie genres, with each bar divided into five rating categories from below 5.0 to above 8.5. The visualization uses D3.js v7 with an SVG rendering approach, employing `d3.stack` for the stacked bar construction, `d3.scaleOrdinal` for color encoding, and `d3.axisBottom`/`d3.axisLeft` for axes. Interactive hover states trigger tooltips that display precise percentages via `d3.format`. The underlying data is loaded from a CSV file containing genre-specific rating proportions.
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%.