Fork of ICE 6: Scatter Plot Showing Life expectancy vs Happiness Score Scatter Plot
✓ Published0🌍 Public
Rrallabandisushen@gmail.com
Last edited Mar 23, 2023
Created on Mar 23, 2023
Forked from Fork of Fork of Fork of ICE-6 Scatter Plot
This scatter plot visualizes the relationship between life expectancy and happiness score across countries, with each circle representing a data point. The chart uses D3 v5’s `scaleLinear`, `axisLeft`, and `axisBottom` to map the CSV data onto an SVG canvas, with green circles and labeled axes. The code loads data from a GitHub-hosted CSV file, parses numeric fields, and renders a titled plot with grid lines and rotated axis labels. Happiness scores appear on the y-axis, while life expectancy spans the x-axis, revealing a positive correlation between the two metrics.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed