Skip to main content
100%

The relations between Happiness Score and variables Scatter Plot dropdownMenu

✓ Published0🌍 Public
NNTCHANG1289
Last edited Nov 7, 2018
Created on Oct 9, 2018

This interactive scatter plot uses a dropdown menu to explore the relationship between a chosen variable and the Happiness Score from the 2017 World Happiness Report on Kaggle. The D3.js v5 code (using `scaleLinear`, `axisLeft`, and `axisBottom`) renders a circle per country on an SVG canvas. Selecting a new option triggers a callback that re-renders the chart, updating the x-axis scale, tick marks, and circle positions while keeping the y-axis fixed on happiness.

AI-generated description

This scatter plot shows the relationship between Happiness Score and other variables in the 2017 World Happiness Report.

This data is from Kaggle - World Happiness Report.

MIT Licensed

Similar vizzes