Activity6_Task2
✓ Published0🌍 Public
This stacked horizontal bar chart visualizes the distribution of IMDb ratings across six genres, with percentages segmented into five rating bins from below 5.0 to above 8.5. The chart uses d3.stack and d3.scaleOrdinal with a custom color palette to display proportional segments within each genre bar. SVG rendering powers the visualization, with d3.axisBottom and d3.axisLeft for scales, and mouseover events trigger tooltip updates showing exact percentage values. The data originates from a local CSV file read directly in the script.
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