Skip to main content
100%

test for small loop

✓ Published0🌍 Public
YYaya Liu
Last edited Feb 10, 2021
Created on Feb 6, 2021
Forked from Scatter plot

This example tests looping through Census Bureau API requests for multiple years and data sets. It uses the ACS (American Community Survey) API to fetch median household income, total population, and unemployment data for Alleghany County, Maryland, from 2015 to 2019. The code constructs API URLs dynamically within for and while loops, then uses the Fetch API to retrieve JSON responses. A button triggers an export function that converts the collected results array into a CSV file for download (no d3.js visualization is rendered).

AI-generated description

This line chart shows single family housing prices from 2010 to 2020.

Data is from Zillow.

MIT Licensed

Similar vizzes