Skip to main content
100%

Activity 8 Q5B

✓ Published0🌍 Public
Ppasyasahas
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

This example displays a choropleth map of India using a Mercator projection, rendered as SVG. It loads country boundary data from the world-atlas TopoJSON file and extracts the India geometry with a topojson-client feature lookup. The code applies a d3.geoMercator projection with fitSize to scale the map to 960 by 500 pixels and draws it using d3.geoPath. The visualization focuses solely on outlining India’s shape without additional styling or data overlays.

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