Skip to main content
100%

Vega-Lite API Template

✓ Published0🌍 Public
AAnurag Desai
Last edited Sep 18, 2020
Created on Sep 18, 2020

This scatterplot displays the relationship between happiness score and logged GDP per capita for countries in the 2020 World Happiness Report, with point color encoding regional indicator and size representing healthy life expectancy. Tooltips reveal country name, happiness score, and GDP per capita on hover. The visualization is built using the vega-lite-api library, which wraps Vega-Lite’s declarative syntax, while D3’s `csv` function loads the external dataset. The chart automatically fits the window dimensions and uses a custom configuration to adjust axis and label styling.

AI-generated description

A visualization constructed using the vega-lite-api.

The Happiness Score is plotted against Logged GDP

The data shown here comes from the [World Happiness Report 2020] (https://www.kaggle.com/mathurinache/world-happiness-report?select=2020.csv), via Gist: World Happiness Report 2020.

MIT Licensed

Similar vizzes