Activity6_Task2
✓ Published1🌍 Public
This example visualizes IMDb movie ratings across genres as a stacked horizontal bar chart, showing the proportion of ratings within five percentage brackets for categories like Documentary, Drama, and Comedy. It uses D3 v7 with SVG rendering, loading data from a local CSV file. The chart employs `d3.stack()` to create the stacked series, `d3.scaleBand` for the y-axis genres, and `d3.scaleLinear` for the x-axis percentages. Interactive tooltips appear on hover, displaying the exact rating percentage for each segment.
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