🌍 Public
Viewing a saved revision (read-only)
f3b6dbb52d7e4f50841373dcf5ffe732
Activity6_Task2
This stacked bar chart visualizes the distribution of IMDb movie ratings across six genres, with each bar segment representing the percentage of titles falling into one of five rating bins. The code loads data from a CSV file and uses D3 v7’s `d3.stack()` to generate the stacked series, `d3.scaleBand()` for genre categories, and `d3.scaleLinear()` for the percentage axis. Interactive tooltips display exact percentages on mouseover, while an ordinal color scale distinguishes rating ranges.
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.