Activity6_Task2
✓ Published1🌍 Public
This stacked bar chart shows the distribution of movie ratings across six genres, using proportions from a CSV data source. It displays five rating categories from “below 5.0” to “above 8.5” as stacked segments within each genre bar. The visualization uses d3.csv to load data, d3.stack for stacking, d3.scaleBand for the categorical y-axis, d3.scaleLinear for the numeric x-axis, and d3.scaleOrdinal for color mapping. Clicking any bar triggers an alert showing the genre’s full rating breakdown.
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