D3.js maps built with the mapjson API
areakm2 property. Log scale handles Russia-to-Monaco range. Demonstrates using areakm2 as a denominator for density calculations.properties=name to attach country names.postal layer, colored by 3-digit prefix. Every feature's gid is the bare ZIP code — join your ZIP-keyed data with a dictionary lookup.fitSize to auto-fit the projection to the returned geometry — the same pattern works for any country.capitalLat and capitalLng properties. Labels use a force simulation to avoid overlapping.filter is an ISO country code and detail=high, the API automatically serves a high-resolution file for small countries and territories.filter=Martinique is resolved to ISO code MQ server-side. At detail=high the 10m dataset resolves the island clearly.filter=US-MA — only this state's districts, not all 3224 US counties. Population choropleth joined via 5-digit FIPS gid — the same code used by Census, BLS, and CDC data.topojson.mesh.