Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
CCheng Tang
Last edited Oct 22, 2022
Created on Oct 22, 2022
Forked from HTML Starter

This example demonstrates loading and parsing CSV data using D3. It fetches a CSV file containing CSS named colors from a GitHub gist and uses the `d3.csv()` function to parse it. The visualization displays the parsed dataset’s metrics in a large text format, showing the row count, column count, and file size in kilobytes, which is computed with `d3.csvFormat()`. The code also includes commented alternatives using `fetch()` and `d3.csvParse()` with async/await syntax.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes