Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Country-Japan

Public visualization

Viewing a saved revision (read-only)

e486c62df80142f99d5d5611dd530b83

Country-Japan

0 stars1🌍 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