🌍 Public
Viewing a saved revision (read-only)
d5fb73a867bc42ecb3d2e91fba4f8f80
Loading and Parsing CSV Data
This example demonstrates loading a remote CSV file of CSS named colors and displaying basic file statistics. A large preformatted text element shows the file size in kilobytes, the number of rows, and the number of columns. The code uses the d3.csv method from D3 v7 to fetch and parse the data asynchronously, then accesses the parsed array and its columns property. The data comes from a GitHub gist URL, and the results are written to the page via textContent.
AI-generated descriptionA program that loads and parses some CSV data.