India Map
✓ Published0🌍 Public
This example displays a map of India with each state rendered as a filled green path. It demonstrates the core D3 geo capabilities, using `geoMercator` to project geographic coordinates and `geoPath` to generate the SVG path strings for the map features. The visualization is built with React, fetching GeoJSON data from a GitHub gist and converting it from TopoJSON using the `topojson` `feature` function. The Map component imports these D3 functions to transform the data into the final SVG rendering.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed