🌍 Public
Viewing a saved revision (read-only)
6a491fd9b26144c8810b372f280e2b01
Activity6_Task2.1
This example visualizes IMDb movie ratings across six genres using a stacked horizontal bar chart, showing the percentage distribution of ratings across five score categories from below 5.0 to above 8.5. The chart uses D3 v7's `d3.stack()` to compute stacked series and `d3.scaleOrdinal` with a custom color palette to distinguish rating categories. Interactive tooltips appear on mouseover using D3 event handlers, displaying the exact percentage for each genre and rating segment. The data is loaded from a CSV file and rendered as SVG elements within a 960x500 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.