Skip to main content
100%

Loading and Parsing Data

✓ Published0🌍 Public
DDavid Kim
Last edited Apr 18, 2022
Created on Apr 13, 2022
Forked from Hello VizHub

This example demonstrates how to load a remote CSV file and display basic summary statistics. It fetches CSS named colors data from a GitHub gist, then uses `d3.csv` to parse the file asynchronously, counting the number of rows, columns, and the formatted file size in kilobytes. The resulting message is rendered into a `<pre>` element with large font styling. The code also includes commented-out alternatives using `fetch`, `async/await`, and `d3.csvParse`, highlighting different parsing workflows available in D3 v7.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes