🌍 Public
Viewing a saved revision (read-only)
c9dd573f678242c9bf47c63a26ab6f69
Data parser
This example parses a CSV file of CSS named colors and displays basic metadata about it in large text. Using D3 v5’s `d3.csv` and `d3.csvFormat` methods, it reports the column names, the approximate file size in kilobytes, and the number of rows in the dataset. The data originates from a remote GitHub gist, and the output is rendered into a `<pre>` element. The code also includes commented alternatives using `fetch`, `async/await`, and `d3.csvParse`.
AI-generated descriptionA program for parsing csv data.