Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
SShmuel Leider
Last edited Jun 3, 2021
Created on Jun 3, 2021

This example shows a summary of the CSS named colors dataset, displaying the file size in kilobytes, row count, and column count in a large <pre> element. It loads the CSV from a GitHub gist using `d3.csv` and parses it into an array of objects. The code then formats the data back to CSV with `d3.csvFormat` to calculate its size, and reads the row and column counts directly from the parsed array and its `columns` property. The result is rendered as plain text into the DOM.

AI-generated description

A program that loads and parses csv data about CSS named colred using D3 utilities, and uses React state to keep track of the data.

MIT Licensed

Similar vizzes