Activity_Tutorial2
✓ Published1🌍 Public
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 descriptionMIT Licensed