Skip to main content
Public

Share visualization

Loading preview…

Loading US Employment/Unemployment 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

Loading US Employment/Unemployment Data

1
SSeekerzero
Last edited Jan 22, 2023
Created on Jan 22, 2023

This example demonstrates loading and displaying US employment and unemployment data from a CSV file. It first shows a raw JSON representation of the data, initially indicating a "LOADING" state before fetching the dataset from a GitHub Gist. Once retrieved, it parses the CSV string using D3's `csvParse` method, converting numerical fields from strings to numbers and handling footnotes. The visualization uses the D3 v7 library to manage the asynchronous data-fetching workflow, updating the displayed content via a state management system. The data originates from the USA Bureau of Labor Statistics, covering civilian noninstitutional population employment status since 1940.

AI-generated description

https://datahub.io/core/employment-us

US Employment and Unemployment rates since 1940

US Employment and Unemployment rates since 1940. Official title: Employment status of the civilian noninstitutional population, 1940 to date from USA Bureau of Labor Statistics.

Field Name Order Type (Format) Description
year 1 year
population 2 integer
labor_force 3 string
population_percent 4 number
employed_total 5 number
employed_percent 6 number
agrictulture_ratio 7 number
nonagriculture_ratio 8 number
unemployed 9 integer
unemployed_percent 10 number
not_in_labor 11 integer
footnotes 12 string

Comments

Sign in to join the discussion.

MIT Licensed