🌍 Public
Viewing a saved revision (read-only)
756ceaf27d1443ba84f2bb0dc3f893b6
Activity6_Task2
A stacked bar chart displays the distribution of IMDb movie ratings across six genres, with each bar segmented into five rating brackets from “below 5.0” to “above 8.5” as percentages. The chart uses D3 v7’s `d3.stack` to compute the stacked series and `d3.scaleOrdinal` with a categorical color palette for the segments. Interactive tooltips reveal exact percentages on hover, and axes are rendered with `d3.axisBottom` and `d3.axisLeft`. Data comes from the bundled `data.csv` file, and the visualization is drawn as SVG elements within a fixed-size viewport.
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.