🌍 Public
Viewing a saved revision (read-only)
3cab4e218e224efb9795bf70334eca57
Fork of Hello VizHub
This stacked bar chart shows the percentage distribution of movie ratings across different genres, with each bar segment representing a rating category from "below 5.0" to "above 8.5." Hovering over a segment reveals its exact percentage via a tooltip. The visualization uses D3 v7 with `d3.stack()` to create the stacked layout, `d3.scaleBand()` for genre positioning, and `d3.scaleLinear()` for percentage values. Data comes from a CSV file loaded dynamically, rendered as SVG with custom styling and interactive mouse events.
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.