Viewing a saved revision (read-only)
68e787ccd1f34f4fbd2d15adfc9a59fe
Task_8_Q2
A stacked bar chart displays population totals for ten countries across six years, from 2015 to 2020, using data from a CSV file. Each bar is segmented by year, with colors from `d3.schemeCategory10` and a legend indicating the year mapping. The chart uses `d3.stack()` to compute the stacked series, `d3.scaleBand` for the categorical x-axis, and `d3.scaleLinear` for the y-axis, rendering with SVG rectangles.
AI-generated descriptionThe impact of genre on movie ratings
This stacked bar chart gives the percentage of each rating level within different movie genres. The aim is to show the impact of genre on movie ratings. When the mouse hovers over each bar, you can see pop-ups of accurate percentage of each rating level within each genre. Total percentage is 1, representing 100%.