🌍 Public
Viewing a saved revision (read-only)
212a2ae5d7c7424da8eaa6a0c77714eb
Activity6_tutorial2
This stacked bar chart shows the distribution of IMDb movie ratings across six genres, with each bar divided into five percentage-based rating categories from “below 5.0” to “above 8.5.” The data is loaded from a CSV file and rendered as SVG using D3 v7. The chart uses `d3.stack()` to compute the stacked series, `d3.scaleBand` for the genre axis, and `d3.scaleLinear` for the percentage scale. Interactive tooltips appear on mouseover, displaying the exact percentage for each rating 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.