Task8_Tutorial2
✓ Published0🌍 Public
This example visualizes IMDb movie ratings across six genres, showing the percentage distribution of ratings within five score bands using stacked horizontal bars. The chart loads data from a local CSV file and renders it as SVG using D3 v7, employing `d3.stack()` for the stacked layout, `d3.scaleOrdinal` for color encoding, and `d3.axisLeft`/`d3.axisBottom` for axes. Interactive tooltips display exact percentages on mouseover, while the y-axis uses `d3.scaleBand` for genre positioning.
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