🌍 Public
Viewing a saved revision (read-only)
cbc220ecd5694a6a9583924efcdac696
Let's make a map with D3.js!
This example creates a tilegram map of the United States using D3.js and the TopoJSON library. It loads geographic data from `tile.topo.json` and renders each state as a path generator using `d3.geoPath` with a custom `geoTransform` projection. The SVG canvas is 1400 by 1000 pixels, and states are styled with their names and tilegram values from the data. The visualization demonstrates how to combine TopoJSON feature extraction with D3's geographic path rendering to produce a stylized map.
AI-generated description