🌍 Public
Viewing a saved revision (read-only)
35542a4715e243ee92da0479f71566c9
Loading and Parsing CSV Data with D3
This example demonstrates how to load and parse a CSV file using D3.js, displaying basic dataset statistics. The visualization shows the file size in kilobytes, row count, and column count within a large text element. The code fetches a CSV file containing CSS named colors from a GitHub Gist, uses `d3.csv` to retrieve and parse the data, then `d3.csvFormat` to measure its size, and finally updates the page’s pre-formatted text content. The D3 v5 API handles the asynchronous data loading and parsing.
AI-generated descriptionA program that loads and parses CSV data.