Skip to main content
100%

activity 6 tutorial 2

✓ Published0🌍 Public
Nnissisharon61@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025
Forked from IMDb Movie ratings

This example visualizes the distribution of IMDb movie ratings across six genres, using a stacked horizontal bar chart where each bar segment represents the proportion of films within a rating category. The code loads data from a CSV file and applies `d3.stack()` to compute the stacked layout, then renders the chart as SVG using `d3.scaleBand` for genres and `d3.scaleLinear` for percentages. Interactive tooltips are implemented with mouse events that display the exact percentage for each rating category on hover, while a color-coded legend identifies the rating groups.

AI-generated description
MIT Licensed

Similar vizzes