🌍 Public
Loading and Parsing CSV Data
This example demonstrates how to load and parse CSV data using D3 v7, displaying the dataset's size in kilobytes, row count, and column count. It fetches a CSV file of CSS named colors from a GitHub gist via `d3.csv`, then formats the data with `d3.csvFormat` to calculate its size. The results are rendered as text in a large `<pre>` element, with commented-out alternative code showing `fetch` combined with `d3.csvParse`.
AI-generated descriptionA programme that loads and parses CSV data.
MIT Licensed
Comments
Sign in to join the discussion.