Skip to main content
100%

un-nest

✓ Published0🌍 Public
SSpaceActuary
Last edited Dec 4, 2015
Created on Dec 4, 2015

This example demonstrates a data transformation workflow using D3.js. It loads tabular data containing FIPS codes, population totals, and Hispanic population percentages for multiple census years, then nests the records by year. A custom function unnests the data, flattening the hierarchical structure back into individual records while preserving the parent year key. The code uses D3's `d3.select`, `d3.tsv`, and `d3.nest` APIs to handle SVG rendering, file parsing, and data grouping, with the unnested result logged to the console.

AI-generated description

Built with blockbuilder.org

Similar vizzes