Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Cheap Tricks for Interaction

Public visualization

Viewing a saved revision (read-only)

e329e04f082d45acae4f3d8817340336

Fork of Cheap Tricks for Interaction

0 stars0🌍 Public
Xxyang3672
Last edited Mar 13, 2021
Created on Mar 10, 2021

This visualization displays the World Happiness Report scores for countries using a color-coded choropleth map. The data, sourced from a CSV file, is joined with geographic features from a TopoJSON world atlas. The map renders with an SVG projection using `d3.geoMercator` and `d3.geoPath`. Users can pan and zoom via `d3.zoom`. Country tooltips reveal names, while a sequential color scale (`scaleSequential` with `interpolateYlOrRd`) maps the scores. The implementation uses D3 v5 to load and process the data and TopoJSON to convert the topology into GeoJSON features.

AI-generated description