🌍 Public
Viewing a saved revision (read-only)
f7c987e14ab6431e98179f249ef33548
Task 2
This stacked bar chart visualizes the distribution of IMDb movie ratings across six genres, with each bar segment representing the proportion of films falling into five rating categories. The code uses D3.js v7, specifically `d3.stack()` for stacking, `d3.scaleBand()` for the categorical y-axis, and `d3.scaleLinear()` for the quantitative x-axis. Data from `data.csv` is loaded via `d3.csv()`, rendered as SVG, and accompanied by a color-coded legend.
AI-generated description