Skip to main content
100%

Let's make a map with D3.js!

✓ Published0🌍 Public
Jjesramyep1263
Last edited Mar 29, 2020
Created on Mar 27, 2020

This example shows a choropleth world map colored by each country’s economy classification, using a natural Earth projection and a red-yellow-green color scale. Users can zoom and pan the map via D3’s zoom behavior. The map is rendered as SVG paths generated with `d3.geoPath` and `geoNaturalEarth1`, while country boundaries come from the world-atlas TopoJSON dataset. Data is loaded with `d3.tsv` and `d3.json`, with colors assigned using `scaleOrdinal` and the `schemeRdYlGn` scheme.

AI-generated description
MIT Licensed

Similar vizzes