Tutorial2_Activity6
✓ Published1🌍 Public
This stacked bar chart visualizes the distribution of IMDb ratings across six movie genres, with each bar segment representing the percentage of titles falling into one of five rating ranges. The visualization uses D3 v7’s `d3.stack()` to compute stacked series, `d3.scaleBand()` for the categorical y-axis, and `d3.scaleLinear()` for the percentage x-axis. Interactive tooltips appear on mouseover, displaying the exact percentage for each genre-rating combination. Data comes from a local CSV file, and the chart renders as SVG with a custom ordinal color scale.
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