Skip to main content
100%

Let's make a JPN map with D3.js!

✓ Published0🌍 Public
Ddaigokawabe
Last edited Aug 11, 2020
Created on Aug 10, 2020

This example displays a black-and-white map of Japan with prefecture boundaries rendered as white strokes, using the jpn-atlas dataset as its geographic source. It loads the data from a remote JSON file and applies a Mercator projection through `d3.geoMercator` and `d3.geoPath` to generate SVG paths for each prefecture. The code uses `topojson.feature` to convert the TopoJSON into GeoJSON, then binds the features to path elements in the SVG. The visualization demonstrates a straightforward D3 v5 workflow for choropleth preparation.

AI-generated description
MIT Licensed

Similar vizzes