Fork of Task_8_Activity_2_Question_1
✓ Published0🌍 Public
This example visualizes IMDb movie rating distributions across six genres using a stacked bar chart. Each bar shows the percentage of films falling into five rating brackets, from below 5.0 to above 8.5, with color-coded segments for each bracket. The chart uses D3 v7’s `d3.stack()` to compute the stacked series, `d3.scaleOrdinal` for colors, and `d3.scaleBand` and `d3.scaleLinear` for axes. Interactive tooltips appear on mouseover, displaying the exact percentage for each rating segment per genre. Data is loaded from a local CSV file.
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