Activity6_Question2
✓ Published1🌍 Public
This stacked horizontal bar chart shows the percentage distribution of IMDb movie ratings across six genres, broken into five rating brackets from “below 5.0” to “above 8.5.” The code uses D3 v7’s `d3.stack()` to create the stacked segments, `d3.scaleBand()` for the genre axis, and `d3.scaleLinear()` for the percentage axis. A tooltip appears on mouseover, displaying the exact percentage for each genre-rating combination. Data is loaded from a CSV file, and the SVG rendering includes a color legend for the rating categories.
AI-generated descriptionMIT Licensed