Skip to main content
100%

Fixed projection for US States

✓ Published1🌍 Public
Jjons288
Last edited Oct 21, 2018
Created on Oct 21, 2018

This example displays a fixed projection of US states using d3.geoAlbersUsa and d3.geoPath, with red circles marking the geographic centroid of each state. It loads avocado sales data from a CSV and merges it with TopoJSON state boundaries using topojson.feature. The visualization renders state shapes as SVG paths, with color-coded regional groupings (Northeast, Midwest, South, West) defined via d3.set filters, though the primary rendering shows all states in green with red centroid markers. The code uses d3.csv, d3.json, and d3.geoCentroid to process and position the data.

AI-generated description
MIT Licensed

Similar vizzes