Skip to main content
100%

Activity6-Question2

✓ Published0🌍 Public
Mmeenam1106@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Activity6-Task2

This visualization shows health expenditure and life expectancy across multiple countries from 1970 to 2007, using a horizontal stacked bar chart where each bar represents a country and segments show annual spending contributions. The chart uses D3 v7’s `d3.stack()` to create the stacked layout and `d3.scaleBand()` for country positioning, with years mapped to colors via `d3.scaleOrdinal()`. Hovering over any segment triggers mouseover and mousemove events that display a tooltip with the exact spending value for that country-year combination. The data comes from a CSV file loaded using `d3.csv()`.

AI-generated description

The 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%.

MIT Licensed

Similar vizzes