Loading and Parsing Data
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed