act8_task2
✓ Published0🌍 Public
This example shows the distribution of IMDb movie ratings across six genres, using a horizontal stacked bar chart where each bar segment represents the proportion of movies within rating brackets below 5.0, 5.0-6.5, 6.5-7.5, 7.5-8.5, and above 8.5. It loads D3 v7 via UNPKG and uses `d3.stack`, `d3.scaleLinear`, `d3.scaleBand`, `d3.axisBottom`, and `d3.axisLeft` to render the SVG. Hovering over a segment displays a tooltip with the exact percentage for that genre and rating bracket.
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