Skip to main content
100%

Fork of Cheap Tricks for Interaction

✓ Published0🌍 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
MIT Licensed

Similar vizzes