IMDb Movie ratings example
This stacked bar chart shows the distribution of IMDb ratings across six movie genres, with each bar divided into five rating categories. The visualization emphasizes how genre influences rating outcomes, revealing that documentaries and dramas tend to receive higher ratings than action or comedy films. Hovering over any segment displays the exact percentage for that genre and rating level. The chart is built with D3.js v7, using `d3.stack()` to create the stacked segments, `d3.scaleBand()` for the categorical axis, and custom mouse event handlers for the interactive tooltips. Data comes from the included CSV file.
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%.