Skip to main content
100%

Country/States Map Example

✓ Published0🌍 Public
Aakshayvenishetty1437
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from Hello VizHub

This example displays a choropleth map of geographic regions rendered as SVG paths, with each region colored uniformly. The visualization uses D3’s `d3.geoMercator()` projection and `d3.geoPath()` generator to transform GeoJSON features from a local `country.json` file into scalable vector graphics. The code loads D3 v6 via a CDN and demonstrates both D3 API imports and local ES6 module integration, though the primary map drawing relies solely on the built-in path generator to convert coordinate data into visible shapes.

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