Fork of Task 8 tutorial 2
✓ Published0🌍 Public
This example shows a stacked bar chart of IMDb movie ratings by genre, using percentages across five rating buckets from below 5.0 to above 8.5. The data is loaded from a CSV file. The chart renders in SVG using D3 v7, with d3.stack for stacking, d3.scaleBand for genres, d3.scaleLinear for percentages, and d3.axisBottom and d3.axisLeft for axes. Hovering over a bar segment displays a tooltip with the exact rating percentage for that genre and bucket.
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