Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

The relations between Happiness Score and variables Scatter Plot dropdownMenu

Public visualization

The relations between Happiness Score and variables Scatter Plot dropdownMenu

0 stars0๐ŸŒ 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.

Comments

Sign in to join the discussion.

MIT Licensed