🌍 Public
Viewing a saved revision (read-only)
c872b4a2215f428d97038d122aa54e87
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