Activity6_Task 2
✓ Published1🌍 Public
This visualization uses stacked horizontal bars to show how IMDb movie ratings are distributed across six genres, with each bar segment representing the percentage of films in a rating band. The chart is built with D3.js v7, using `d3.stack()` to compute the cumulative bar segments, `d3.scaleOrdinal()` for color coding, and `d3.axisBottom()` for the percentage scale. An interactive tooltip displays the precise percentage for each genre and rating category on hover, using `d3.format('.2f')` for numeric output. The data comes from a comma-separated file listing genre and five rating brackets.
AI-generated descriptionMIT Licensed