Skip to main content
100%

Japan Map

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

This example displays a map of Japan using a Mercator projection, rendered as an SVG path with a violet fill that transitions to light blue on hover. It loads geographic data from the world-atlas TopoJSON dataset, extracts Japan’s geometry via `topojson.feature`, and fits the projection to the country’s bounds using `d3.geoMercator().fitSize`. The visualization applies `d3.zoom` for interactive pan and zoom, and uses `d3.json` to fetch the data asynchronously.

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