🌍 Public
Viewing a saved revision (read-only)
a0608fcf2b8642b0a7ffeeffa4349992
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.