T2_Jaynica Nunna
✓ Published0🌍 Public
A stacked bar chart displays the percentage distribution of IMDb movie ratings across six genres, using five rating brackets from "below 5.0" to "above 8.5." The chart reads percentage data from a CSV file, with each genre represented by a horizontal bar divided into colored segments. Built with D3 v7, the visualization uses `d3.stack()` to compute the stacked series, `d3.scaleOrdinal()` for color mapping, and `d3.scaleBand()` for the genre axis. Interactive tooltips appear on hover, showing the exact percentage for each rating category, rendered as SVG elements.
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