act 6 t2
✓ Published0🌍 Public
This stacked bar chart visualizes IMDb movie ratings across six genres, showing the percentage distribution within five rating brackets from below 5.0 to above 8.5. The chart uses `d3.stack()` to generate stacked series from the CSV data, `d3.scaleBand()` for the genre categories, and `d3.scaleLinear()` for the percentage axis. Each bar segment is colored using `d3.scaleOrdinal` with a custom palette. Interactive tooltips appear on mouseover, displaying the exact percentage for each rating category, while the SVG rendering includes axes, gridlines, and a title.
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