Activity6_task2
✓ Published1🌍 Public
This example shows a stacked bar chart comparing ratings for five genres across four streaming platforms (Netflix, Hulu, Disney+, Prime Video) as percentages of total ratings. The code uses D3 v7’s `d3.stack` to compute stacked segments, `d3.scaleLinear` for the horizontal percentage axis, `d3.scaleBand` for genre categories, and `d3.scaleOrdinal` with `d3.schemeCategory10` for platform colors. Data is loaded from a CSV file, rendered as SVG rectangles, and includes interactive tooltips via SVG `title` elements.
AI-generated descriptionMIT Licensed