🌍 Public
Viewing a saved revision (read-only)
c63182df048d427f9b249d42c9f38d69
Transforming CBP Data
This example transforms U.S. Census County Business Patterns data for New York State, identifying the economic sector with the most establishments in each county. The visualization fetches county-level records via the Census API, filters out the “Total for all sectors” row, and uses `flatGroup` and `maxIndex` to summarize the dominant sector per county. The resulting JSON summary is displayed as text in a `pre` element, with all data processing handled through D3 v7 utilities like `csvParse`, `rollup`, and `bin`.
AI-generated descriptionAggregated Census County Business Practice data to show the sector with the most establishments in each county in New York State