Activity6_task2
✓ Published0🌍 Public
This stacked bar chart visualizes the distribution of IMDb ratings across six movie genres, showing the percentage share within five rating bands from below 5.0 to above 8.5. Using D3 v7 with SVG rendering, the visualization loads data from a local CSV file and applies d3.stack() with a d3.scaleBand for genres and d3.scaleLinear for percentages. Each bar segment displays a distinct color from a custom ordinal scale, and interactive mouseover events trigger a tooltip revealing the exact percentage for each genre-rating pair.
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