Activity6_Task2
✓ Published0🌍 Public
This example displays a stacked bar chart of IMDb movie ratings across six genres, showing the percentage distribution of ratings within categories such as below 5.0, 5.0-6.5, and up to above 8.5. The visualization reads from a CSV file and uses d3.stack, d3.scaleOrdinal, d3.scaleBand, and d3.axisBottom to render the SVG. Each rectangle responds to mouseover events, displaying a tooltip with the exact percentage for that genre and rating bracket. The chart includes a title, axis labels, and a color legend.
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