Act6-tutorial2
✓ Published1🌍 Public
This stacked bar chart visualizes the distribution of movie ratings across six genres, using horizontal bars to show the percentage of ratings in five categories from "below 5.0" to "above 8.5." The chart loads CSV data, builds the stacked layout with d3.stack(), and scales positions using d3.scaleLinear and d3.scaleBand. Interactive tooltips display exact percentages on mouseover, while an ordinal color scale distinguishes rating categories. The visualization is rendered as SVG using D3 v7, with axis labels and a legend highlighting genre-specific rating patterns.
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