Task 8 q2
✓ Published1🌍 Public
A stacked bar chart displays IMDb rating distributions across six film genres, with each bar segmented into five rating categories from "below 5.0" to "above 8.5." The chart uses d3.stack() to compute stacked series, d3.scaleLinear for the percentage x-axis, and d3.scaleBand for categorical genre spacing. Hovering over any segment reveals a tooltip showing the exact percentage for that rating category using d3.select and event handlers. Data comes from a local CSV file rendered as SVG elements.
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