🌍 Public
Viewing a saved revision (read-only)
a4cd43548f4e482db85b262e95485b1c
Carregar dados em CSV
This example demonstrates how to load and summarize a remote CSV file using D3’s `d3.csv` parsing method, displaying the file size, row count, and column count in a large text block. The data comes from a GitHub-hosted CSS named colors dataset. The code calls `d3.csv(url).then(...)`, formats the raw text with `d3.csvFormat(data)` to compute its kilobyte size, and reports the number of rows and columns from the parsed array. A commented alternative shows the equivalent approach using the Fetch API with `d3.csvParse`.
AI-generated descriptionParse CSV Data.