Skip to main content
Public

Share visualization

Loading preview…

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

Japan Map

2
LLakshmipriya-kalapala
Last edited Apr 12, 2023
Created on Apr 12, 2023
Forked from Japan Map

This visualization displays a choropleth map of Japan’s administrative regions, with each prefecture filled in a uniform red color and separated by white borders. The map uses an equirectangular-like Mercator projection via `d3.geoMercator` and renders geographic features with `d3.geoPath`. The code loads TopoJSON data for both states and districts, then applies `d3.scaleOrdinal` with a category color scheme, though only the state layer is drawn. Interactive zoom and pan are supported through D3’s `zoom` behavior, which transforms the SVG group containing the map paths.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed