🌍 Public
Viewing a saved revision (read-only)
b2e425b3941d4559b54a6b5fbcc523c9
activity 6_Question2
This stacked bar chart displays the distribution of movie ratings (good, average, poor) across different genres, with each bar segment representing a percentage of total ratings. The visualization uses D3.js v7 with an SVG rendering, employing scales like `d3.scaleLinear` for the x-axis percentage values and `d3.scaleBand` for the categorical genre groupings on the y-axis. The chart uses `d3.stack` to create stacked segments, with colors mapped via `d3.scaleOrdinal`. Data comes from an external CSV file, and hover interactions temporarily change segment colors to light blue while logging percentage values to the console.
AI-generated description