Viewing a saved revision (read-only)
9f55e75b5a724193a4151bf2dae45a20
TAsk8 Q2 1
A stacked bar chart displays the estimated population by religion for the 20 most populous countries in 2010, based on data from `religionByCountryTop20.csv`. Each bar represents a country, segmented by religious affiliation, with a color legend for each religion. The chart uses D3's `scaleOrdinal`, `schemeCategory10`, `stack`, and `flatRollup` for data processing and layout. Hovering over a legend item highlights that religion across all bars and fades the others.
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%.