Skip to main content
100%

US Choropleths Map And Captital/Major Cities

✓ Published1🌍 Public
Yyuzhang21
Last edited Oct 10, 2019
Created on Oct 9, 2019
Forked from Centered US Map

This example displays a choropleth map of the contiguous United States with state boundaries rendered as colored polygons, overlaid with two city datasets. State colors transition from white to blue via a `scaleLinear` color scale, while graticules and interior borders are drawn using `d3.geoPath` and `d3.geoGraticule`. Population data from a world cities CSV appears as semi-transparent purple circles sized with `scaleSqrt`, and state capitals from a Vega JSON file are fixed black dots. The map uses TopoJSON from the us-atlas library, projected with `geoAlbers` in an SVG rendered through React.

AI-generated description

A US map showing states boundaries from US Atlas TopoJSON, polished for visual style, including graticules.

This map shows all US continental states with random colors from a white to blue linear color scale. Two groups of cities are showing on the map. The first group of cities comes from world cities database screened with US cities only. They have population information, which show up corresponding to the size of the circle for each city. The second group of cities are US states capitals, which show as fixed size black dots. This is a json file which can be found in [vega docs data] (https://github.com/vega/vega/tree/master/docs/data) on github.

MIT Licensed

Similar vizzes