Activity 7.3
✓ Published0🌍 Public
This stacked horizontal bar chart visualizes the distribution of movie ratings across six genres, using percentage categories from below 5.0 to above 8.5. Each genre is represented as a single bar with colored segments, and hovering over a segment reveals the exact percentage via a custom tooltip. The visualization uses D3 v7’s `d3.stack` to compute the stacked series, `d3.scaleOrdinal` for categorical coloring, and `d3.scaleBand` for the horizontal layout. Data is loaded from a CSV file and rendered as SVG elements within a 960×500 viewport.
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