Activity6-Task2
✓ Published0🌍 Public
A stacked bar chart shows the distribution of IMDb movie ratings across six genres, with each bar divided into five rating categories from below 5.0 to above 8.5. The chart uses d3.stack() to compute the stacked series and d3.scaleOrdinal() for the color encoding, rendering as SVG with d3.axisBottom and d3.axisLeft. Hovering over a segment displays a tooltip showing the exact percentage for that rating category within the genre. Data comes from a local CSV file loaded through D3's data loading methods.
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