Fork of IMDb Movie ratings
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 descriptionThe 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%.