Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 8 Q5B

Public visualization

Viewing a saved revision (read-only)

bfa71d7ab48c43e1a5c72dc912f30168

Activity 8 Q5B

0 stars0🌍 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.