🌍 Public
Loading and Parsing CSV Data
This example demonstrates how to load and parse a CSV file using D3 v5, displaying basic statistics about the dataset in a large text block. The page fetches a CSV of CSS named colors from a GitHub gist via `d3.csv`, then computes the file size in kilobytes with `d3.csvFormat`, and counts the number of rows and columns before writing the results to a `pre` element. It showcases the asynchronous promise-based loading pattern and data inspection methods provided by D3’s CSV utilities.
AI-generated descriptionA program to parse and load CSV data.
MIT Licensed
Comments
Sign in to join the discussion.