Activity 7 - Stacked Bar
✓ Published0🌍 Public
This stacked bar chart visualizes the distribution of movie ratings across six genres, with each genre’s bar segmented by five rating intervals from “below 5.0” to “above 8.5.” The chart uses D3 v7’s `d3.stack()` and `d3.scaleOrdinal` to generate and color the segments, while `d3.scaleBand` positions genres on the y-axis. Interactive tooltips display exact percentages on mouseover. Data is loaded from a local CSV file using `d3.csv`.
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