Activity6_Task2
✓ Published1🌍 Public
This stacked horizontal bar chart visualizes IMDb rating distributions across six movie genres, using five rating bands from "below 5.0" to "above 8.5." Each bar segment’s length encodes the percentage of films in that genre falling within each rating range. The visualization uses d3.stack for the stacked data, d3.scaleOrdinal for categorical color mapping, and d3.scaleLinear for the x-axis. Hovering over a segment triggers a tooltip showing the precise percentage. Data comes from the included `data.csv` file, and the chart is rendered as SVG within a 960x500 pixel canvas.
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