Skip to main content
100%

Making Maps - Country Map with TopOJSON Data

✓ Published1🌍 Public
TTejaswi@3271
Last edited Apr 4, 2022
Created on Apr 3, 2022
Forked from Hello VizHub

This example displays a choropleth-style map of a country’s regions using D3.js geoMercator and geoPath projections, rendered as an SVG within a React application. The map draws region boundaries as dark strokes, fills each feature with an olive-green color, and overlays a yellow interior mesh to highlight shared borders. Data is fetched as TopoJSON from a public Gist, then converted to GeoJSON using the topojson library’s feature and mesh functions, demonstrating a complete pipeline from raw geodata to interactive map.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes