Skip to main content
100%

Happiness Level Line Chart

✓ Published2🌍 Public
CChooo4u
Last edited Feb 2, 2019
Created on Oct 16, 2018

This line chart displays life satisfaction trends across countries from 2004 to 2017, using data from the World Happiness Report. A dropdown menu lets viewers switch between variables like GDP per capita, social support, and freedom, with each country represented by a colored line via d3.nest and d3.scaleOrdinal. The visualization uses d3.line with curveBasis for smooth paths, d3.axisLeft and d3.axisBottom with tick marks, and an SVG color legend. It renders as SVG with d3.v5, updating the view dynamically through a custom lineChart function.

AI-generated description

Chuchen 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.

MIT Licensed

Similar vizzes