Skip to main content
100%

geoTransform Example

✓ Published0🌍 Public
Aandrew-reid
Last edited Mar 17, 2017
Created on Feb 24, 2017

This example demonstrates a custom D3 geoTransform that scales a U.S. state map. The projection is defined with a `scale` function that uses `d3.geoTransform` to adjust coordinates around the center of the SVG canvas, shrinking the map to 20% of its original size. State boundaries are loaded from a TopoJSON file, converted to GeoJSON features, and rendered as gray SVG paths. The visualization highlights how custom geographic projections can be created and applied with D3's geoPath, offering a simple way to rescale map data without using a standard projection.

AI-generated description

Similar vizzes