ICE 8: VN Map
✓ Published0🌍 Public
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 descriptionMIT Licensed