Activity 6_task 2
✓ Published0🌍 Public
A stacked bar chart displays the distribution of IMDb ratings across six movie genres, with proportions segmented into five rating bands from below 5.0 to above 8.5. The visualization uses d3.stack and d3.scaleOrdinal to aggregate the CSV data, rendering horizontal bars with an SVG. Interactive tooltips, implemented via mouse events and appended HTML divs, show exact percentages for each genre-rating combination on hover. d3.axisBottom and d3.axisLeft structure the percentage and genre axes.
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