Task8_Task(2)
✓ Published1🌍 Public
A stacked horizontal bar chart displays the distribution of IMDb movie ratings across six genres, broken into five rating brackets from below 5.0 to above 8.5. Each bar is segmented proportionally, with colors assigned per bracket via `d3.scaleOrdinal`, and hover interactions reveal exact percentages using a custom tooltip. The chart is rendered as SVG, using `d3.stack`, `d3.scaleLinear`, and `d3.scaleBand` for layout, with axes and labels styled via CSS. The data comes from a CSV file, processed directly in D3 v7 within the VizHub environment.
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