Skip to main content
100%

Fork of Let's make a map with D3.js!

✓ Published0🌍 Public
Mmaferayala
Last edited Jul 30, 2022
Created on Jul 30, 2022

This example renders a choropleth-style map of continental Costa Rican cantons using a Mercator projection. It loads GeoJSON data via `d3.json` and draws the geographic features as SVG paths with `d3.geoPath` and `d3.geoMercator`. The code binds the fetched features to path elements, generating each shape’s outline directly from the GeoJSON geometry. The map uses a minimal styling approach with a full-window SVG and no additional data-encoding layers.

AI-generated description
MIT Licensed

Similar vizzes