Skip to main content
100%

Activity_Tutorial2

✓ Published1🌍 Public
Cchowdaryhemanth14@gmail.com
Last edited Mar 31, 2025
Created on Mar 30, 2025
Forked from Activity_Tutorial2

This stacked bar chart shows the percentage distribution of movie ratings (G, PG, PG-13, R) across five genres, with each bar segmented by rating category. The visualization uses D3 v7’s `d3.scaleBand` for the categorical genre axis and `d3.scaleLinear` for the percentage scale. Data is loaded from a CSV file, and bars are generated using `d3.stack()` to compute cumulative values, with colors from `d3.schemeSet2`. Hovering over any segment reveals its exact percentage via a styled tooltip.

AI-generated description
MIT Licensed

Similar vizzes