Activity_6_Task_2
✓ Published0🌍 Public
This stacked bar chart shows how movie ratings are distributed across genres, using percentage segments for five rating ranges from "below 5.0" to "above 8.5". The chart uses `d3.stack` to compute the cumulative bar segments and `d3.scaleOrdinal` for color mapping, with interactive tooltips on mouseover that display the exact percentage for each rating category. The SVG is built using `d3.axisBottom`, `d3.axisLeft`, and `d3.scaleBand` for the categorical genre axis.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed