Skip to main content
Public

Share visualization

Loading preview…

Transforming CBP Data

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Transforming CBP Data

0
Hhmkyriacou
Last edited Jan 29, 2023
Created on Jan 29, 2023
Forked from Transforming 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 description

Aggregated Census County Business Practice data to show the sector with the most establishments in each county in New York State

Comments

Sign in to join the discussion.

MIT Licensed