🌍 Public
Viewing a saved revision (read-only)
8bbb624f8b1a4eedb6702447c180a366
Activity6 task2
This example visualizes IMDb movie ratings across six genres using a horizontal stacked bar chart, with each bar divided into five rating brackets from below 5.0 to above 8.5. The chart is rendered as an SVG using D3 v7, loading the data from a CSV file and employing `d3.stack` for the stacked layout, `d3.scaleBand` for the genre axis, and `d3.scaleOrdinal` for color mapping. Interactive tooltips display the exact percentage for each rating segment on hover.
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.