Skip to main content
100%

Fork of IMDb Movie ratings

✓ Published0🌍 Public
Pprudhvi
Last edited Apr 10, 2023
Created on Apr 10, 2023

This stacked bar chart uses D3.js v7 to show how IMDb ratings vary across movie genres, with each genre’s bar segmented by five rating ranges from below 5.0 to above 8.5. The visualization emphasizes proportional comparisons, as each genre’s segments sum to 100%, and hovering over any segment reveals the exact percentage via a tooltip. The code uses `d3.stack()` to compute the stacked layout, `d3.scaleBand` for the y-axis, and `d3.scaleLinear` for the x-axis, rendering SVG rectangles with a dark theme. Data comes from the included CSV file, showing genres like Documentary, Drama, and Action.

AI-generated description

The impact of genre on movie ratings

This stacked bar graph displays the percentage of each rating level across various movie genres.

The objective is to demonstrate how genre affects movie ratings. You can see precise percentages of each rating level within each genre in pop-up windows that appear when the mouse is hovered over each bar. The total percentage is 100%.

MIT Licensed

Similar vizzes