Skip to main content
100%

Project Algernon - Drawing a map

✓ Published1🌍 Public
JJames Rhodes
Last edited Apr 14, 2022
Created on Apr 14, 2022
Forked from Hello VizHub

A choropleth-style map of China rendered with React and D3.v7 draws each land feature as an SVG path, filled with a solid green hue. Using a GeoJSON topology from a GitHub-hosted file, the code relies on `d3.geoMercator` for projection, `d3.geoPath` for converting features to path data, and `topojson.feature` to transform the topology. The map is scaled and translated to fit the 960-by-500 viewport, displaying the country's shape without additional styling.

AI-generated description

Project Algernon - mapping China

MIT Licensed

Similar vizzes