Skip to main content
100%

Fork of HTML Starter

✓ Published1🌍 Public
Yyihsuan
Last edited Jan 3, 2024
Created on Jan 3, 2024
Forked from HTML Starter

This visualization shows how a selected country’s happiness and its contributing factors (economy, family, health, freedom, trust, generosity) change from 2015 to 2023, either as raw scores or as differences from the global yearly average. The user can switch between these two modes via a flag. The chart renders multiple colored lines, one per feature, using d3.line and d3.scaleOrdinal with d3.schemeSet2, and includes axes from d3.axisBottom and d3.axisLeft. Data comes from the CSV file, which is loaded with d3.csv.

AI-generated description
MIT Licensed

Similar vizzes