Fork of Fork of Fork of task 8 question 2
✓ Published1🌍 Public
This example displays a stacked bar chart of movie ratings by genre, using a diverging horizontal layout where each bar segment represents a different rating category's percentage. The bars are color-coded with a categorical scale, and hovering over a segment reveals a tooltip with the exact percentage. The visualization is built with D3 v7, using `d3.stack()` to process the data and `d3.scaleBand()` for the y-axis. The chart renders as SVG, with data loaded from a CSV file.
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