Skip to main content
100%

Activity-6_Task-2

✓ Published1🌍 Public
Aabdul.khader2899@gmail.com
Last edited Apr 6, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

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 description

Creating stacked bar chart using the movies data

MIT Licensed

Similar vizzes