Skip to main content
100%

Country-Japan

✓ Published1🌍 Public
Yyasmeenha
Last edited Mar 26, 2023
Created on Mar 26, 2023

This example visualizes a simplified map of Japan using a Mercator projection. A slider controls the level of topological simplification, filtering out geographic features based on a triangle-area threshold computed with `topojson.presimplify`. The map is rendered as an SVG path using `d3.geoPath` with a custom `d3.geoTransform` stream that converts simplified coordinates to pixel positions via `projection.fitExtent`. The code redraws the map on slider input and window resize events.

AI-generated description
MIT Licensed

Similar vizzes