Fork of Activity6_task2
✓ Published0🌍 Public
This stacked bar chart visualizes IMDb rating distributions across six film genres, showing the proportion of movies falling into five rating brackets from “below 5.0” to “above 8.5.” The chart uses d3.stack to compute layered segments, along with d3.scaleBand and d3.scaleLinear for positioning, and d3.axisBottom for percentage labels. Rectangles change opacity on mouseover, and a custom tooltip displays the exact percentage for each genre-rating combination. Data comes from the included CSV file, rendered as SVG with D3 v7.
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