🌍 Public
Viewing a saved revision (read-only)
1d3868929b5a4d46981cabc26f9b2082
activity6_ques2
A stacked bar chart visualizes the distribution of movie genres across years. It shows the contribution of Action, Drama, Comedy, Horror, and SciFi categories to the total number of movies per year from 2015 to 2019. The code uses `d3.stack()` and `d3.scaleOrdinal` to separate genre segments, while `d3.scaleBand` and `d3.scaleLinear` position the bars on the axes. The chart renders as an SVG, with data derived from a local CSV file.
AI-generated description