1027Happiness Level Scatter Plot
This scatter plot visualizes self-reported life satisfaction across countries from 2004 to 2017, using data from the World Happiness Report. A dropdown menu lets users switch between different well-being metrics on the y-axis, while each circle represents a country-year observation colored by country. The visualization combines a time-based scatter plot with overlaid line charts showing trends per country. Clicking a country in the color legend filters both the points and lines, with a tooltip revealing exact values on hover. The code uses D3 v5 APIs including `scaleTime`, `scaleOrdinal`, `nest`, `axisBottom`, and `transition().duration()` for smooth animations.
AI-generated descriptionChuchen Dai - forked from Cars Scatter Plot by Curran Kelleher.
This scatter plot shows data about self-reported life satisfaction over the world from 2004 to 2017.
This data comes from the World Happiness Report 2017 in Our World in Data: Happiness and Life Satisfaction.