dv2020-ep29-viz29 - world map 01
✓ Published1🌍 Public
Zzach b.
Last edited Mar 20, 2023
Created on Mar 20, 2023
Forked from dv2020-ep27-viz27 - line graph (step two)
This example renders a world map using world-atlas TopoJSON data, converted to GeoJSON and drawn as SVG paths. The map shows countries filled in green, with red borders, blue shorelines, a glowing blue sphere, and semi-transparent red graticule lines. It uses d3.geoNaturalEarth1 for projection, d3.geoPath for path generation, and d3.geoGraticule for the grid, with projection.fitSize to scale the map to the viewport. React manages the component state and rendering.
AI-generated descriptionworld map using world atlas, natural earth map data.
MIT Licensed