Activity 6 Tutorial 2
✓ Published1🌍 Public
This visualization shows the distribution of IMDb movie ratings across six genres, using horizontally stacked bar charts where each bar segment represents a rating category from "below 5.0" to "above 8.5" as a percentage. The code uses D3 v7 to load CSV data, applies `d3.stack` to compute stacked series, and renders the result as SVG rectangles with `d3.scaleLinear` and `d3.scaleBand`. A custom tooltip displays exact percentages on mouseover, with legend colors mapped via `d3.scaleOrdinal`.
AI-generated descriptionMIT Licensed