Stacked Bar Chart Assignemnt 2 Q2
✓ Published0🌍 Public
This stacked bar chart shows the distribution of movie ratings across six genres, with each bar segment representing the percentage of movies falling into one of five rating brackets (from "below 5.0" to "above 8.5"). The visualization uses D3.js v7 with an SVG rendering approach, employing `d3.stack()` to compute the stacked segments and `d3.scaleOrdinal()` for color encoding. A custom tooltip, built with HTML div elements, displays the exact percentage for each segment on mouseover, while the y-axis uses `d3.scaleBand()` for categorical genre labels. The data originates from a local CSV file.
AI-generated descriptionMIT Licensed