🌍 Public
Viewing a saved revision (read-only)
d9a15b0fc9f84b3f85e68e139bb58773
Project Algernon - Drawing a map
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 descriptionProject Algernon - mapping China