🌍 Public
Viewing a saved revision (read-only)
1d383f8f55ac4c128d8059b547fff7d0
Activity6_Task2
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. The chart is rendered as SVG using D3 v7, with data loaded from a CSV file. The implementation demonstrates D3’s stack layout for proportional composition, d3.scaleBand for categorical positioning, and d3.scaleOrdinal for color encoding. Interactive tooltips reveal the exact percentage for each rating category on hover, with a legend positioned to the right.
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.