Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot of Happiness and Y axis attributes

Public visualization

Viewing a saved revision (read-only)

d7cddb75379f43788ded4fcabadd5742

Scatter Plot of Happiness and Y axis attributes

0 stars2🌍 Public
NNikithakatta30
Last edited May 21, 2023
Created on May 18, 2023

This scatter plot visualizes the relationship between happiness scores and several country-level attributes, including economy, social support, generosity, freedom, and perceived corruption, using data from the World Happiness Report. An interactive dropdown menu allows the viewer to switch the y-axis attribute, updating the visualization dynamically. The plot is rendered as an SVG using React and D3 v5, with `d3.scaleLinear` handling axis scaling and `d3.extent` and `d3.format` for domain and tick formatting. Axis components and data marks (circles) are implemented as reusable React components, with tooltips showing the happiness score on hover.

AI-generated description

A scatter plot of The Iris Dataset.