Skip to main content
100%

ICE 6: Scatter Plot Showing Life expectancy vs Happiness Score Scatter Plot

✓ Published1🌍 Public
SShreeti Upreti
Last edited Jun 25, 2022
Created on Jun 23, 2022
Forked from HTML Starter

This scatter plot visualizes the relationship between life expectancy and happiness score for countries in the 2017 World Happiness Report, with each semi-transparent purple circle representing a country. The code uses D3 v5’s `csv` loader to fetch the dataset and `scaleLinear`, `extent`, `axisBottom`, and `axisLeft` to map the values and render axes with gridlines. The SVG rendering includes labeled axes and a title, while CSS controls circle opacity and text styling.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

MIT Licensed

Similar vizzes