๐ Public
The relations between Happiness Score and variables Scatter Plot dropdownMenu
NNTCHANG1289
Last edited Nov 7, 2018
Created on Oct 9, 2018
Forked from Life expectancy vs Happiness Score Scatter Plot
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 descriptionThis 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
Comments
Sign in to join the discussion.