🌍 Public
Viewing a saved revision (read-only)
9d9b6f7222a043a1b7cfb32a5857bf2d
Activity-6_Task-2
This stacked bar chart visualizes the distribution of IMDb movie ratings across six genres, with each bar segment representing the proportion of films falling into one of five rating brackets (e.g., below 5.0, 5.0–6.5). The chart uses `d3.stack` to compute cumulative segment positions, with `d3.scaleBand` for the genre axis and `d3.scaleLinear` for the percentage axis. Interactive tooltips, implemented via mouseover events, display the exact percentage for each segment. SVG rendering is employed, and the data is sourced from a CSV file.
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.