Activity 6 Task 2
✓ Published0🌍 Public
This stacked bar chart displays the distribution of movie ratings across six genres, breaking down each genre’s percentage into five rating categories from “below 5.0” to “above 8.5.” Using D3 v7 and SVG rendering, the code applies `d3.stack`, `d3.scaleOrdinal`, `d3.scaleLinear`, and `d3.scaleBand` to construct the bars, while `d3.axisBottom` and `d3.axisLeft` handle axes. Interactive hover effects via tooltips show exact percentages with `d3.format`, and a legend clarifies color mapping for each rating category.
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