🌍 Public
Viewing a saved revision (read-only)
a3e00075a5544c93b887d31731ec6a4e
Activity6_Task 2
A stacked bar chart shows how IMDb movie ratings are distributed across six genres, with each bar segmented into five rating bands from "below 5.0" to "above 8.5" as proportions summing to 1. The visualization highlights that documentaries skew toward higher ratings while action films concentrate in the lowest band. Built with D3 v7, the chart uses `d3.stack()` to compute the stacked segments and `d3.scaleOrdinal` for color encoding. Interactive tooltips display the precise percentage for each rating segment on mouseover. Data comes from the embedded `data.csv` file, rendered as SVG.
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.