Activity6_Task2
✓ Published0🌍 Public
A divergent stacked bar chart shows the distribution of IMDb ratings by genre, with each bar divided into five rating percentage categories from below 5.0 to above 8.5. The visualization uses D3.js version 7 via UNPKG, loading data from a CSV file. It employs `d3.stack()` for the stacked bar layout, `d3.scaleBand()` for the y-axis, `d3.scaleLinear()` for the x-axis, and `d3.scaleOrdinal()` with a custom color palette. Mouseover interactions trigger tooltips displaying the exact percentage for each rating category.
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