Activity6_Task2
✓ Published3🌍 Public
This example visualizes IMDb movie ratings across six genres, displaying the percentage distribution of ratings in five categories using a stacked horizontal bar chart. The chart uses D3 v7 with SVG rendering, employing `d3.stack()` to compute stacked series, `d3.scaleBand()` for genre positioning on the y-axis, and `d3.scaleLinear()` for percentage values. Interactive tooltips appear on mouseover, showing the exact percentage for each rating category. Data comes from a local CSV file loaded with `d3.csv`.
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.
MIT Licensed