Skip to main content
100%

Parsing CSV data with D3

✓ Published0🌍 Public
MMarina Shemesh
Last edited Mar 12, 2021
Created on Mar 12, 2021

This example shows how to parse a CSV file and report basic characteristics of the dataset, including row count, column count, and approximate file size in kilobytes. The visualization is text-based, displaying these statistics in a large `<pre>` element. It loads a CSS color list from a GitHub gist using D3 v5’s `d3.csv` method, which returns a promise, and then formats the output with `d3.csvFormat`. The page is a minimal HTML document styled with CSS and rendered within a React framework.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

A program that loads and parse CSV data

MIT Licensed

Similar vizzes