activity6_ques2
✓ Published0🌍 Public
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 descriptionMIT Licensed