Skip to main content
Public

Share visualization

Loading preview…

Fork of Japan Map

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Japan Map

1
Ssivamani
Last edited Mar 28, 2023
Created on Mar 28, 2023
Forked from Japan Map

This example displays a choropleth map of Japan’s prefectures, rendered as SVG paths with a uniform orange fill and white strokes. The code loads TopoJSON data twice via `d3.json` and uses `topojson.feature` to extract administrative boundaries. A `d3.geoMercator` projection with `d3.geoPath` draws the geography, while `d3.scaleOrdinal` and `schemeCategory10` are available for potential color encoding. The map supports pan and zoom through `d3.zoom`, transforming a grouped `<g>` element.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed