Skip to main content
100%

IMDb Movie ratings example

✓ Published5🌍 Public
Hhelloelectro
Last edited Feb 8, 2023
Created on Feb 5, 2023
Forked from IMDb Movie ratings

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 description

The 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%.

MIT Licensed

Similar vizzes