Skip to main content
100%

ICE 8: VN Map

✓ Published0🌍 Public
Ttrucntx007
Last edited Apr 1, 2022
Created on Mar 31, 2022
Forked from ICE 8: World Map

This example renders a choropleth map of Vietnam’s states, coloring each polygon according to its area value using a purple ordinal color scale. Built with React and D3 v6, it loads TopoJSON data from a GitHub repository, converts it to GeoJSON via `topojson.feature`, and projects it with `d3.geoMercator` and `d3.geoPath`. The SVG output is generated inside a React component using refs, with `d3.json` fetching the data asynchronously and `scaleOrdinal` mapping values to colors.

AI-generated description
MIT Licensed

Similar vizzes