Skip to main content
100%

activity 6_Question2

✓ Published0🌍 Public
Aa9.hemraj@gmail.com
Last edited Oct 30, 2025
Created on Oct 30, 2025

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
MIT Licensed

Similar vizzes