🌍 Public
Viewing a saved revision (read-only)
001c0c43d3d9455384856fe45d95b26e
Loading and Parsing CSV
This example shows how to load and parse a CSV file with D3 v7, displaying a summary of the dataset’s size, row count, and column count. It fetches a CSV of CSS named colors from a GitHub gist, then uses `d3.csv` to parse the text and `d3.csvFormat` to measure the data’s file size in kilobytes. The results are written to a `<pre>` element on the page using vanilla JavaScript and the `fetch` API for the initial request.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.