Activity 7 Task 2
✓ Published0🌍 Public
A stacked horizontal bar chart displays the percentage distribution of movie ratings across six genres, using data from a CSV file. The visualization uses D3 v7's `d3.stack`, `d3.scaleOrdinal`, and `d3.scaleBand` to render SVG rectangles, with a color scale distinguishing five rating categories. Interactive tooltips appear on mouseover, showing the exact percentage for each rating segment. The chart includes labeled axes, a legend, and a title.
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