Activity-8_Task-2
✓ Published0🌍 Public
This stacked bar chart visualizes the distribution of IMDb movie ratings across six genres, with each bar segment representing the percentage of movies falling into five rating brackets from below 5.0 to above 8.5. The chart uses d3.stack() to compute the layered data, d3.scaleBand and d3.scaleLinear for positioning, and d3.scaleOrdinal to map color categories. Interactive tooltips appear on mouseover, displaying the exact percentage for each segment using d3.format. The data is loaded from a local CSV file and 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