🌍 Public
Viewing a saved revision (read-only)
e0e468ef103840fcaaf303532ac66166
Loading and Parsing CSV data
This example demonstrates loading and parsing CSV data using D3 v5, displaying basic statistics about the dataset in a large HTML element. The code fetches a CSV file containing CSS named colors from a GitHub gist, uses `d3.csv()` to parse it asynchronously, and then computes the formatted size in kilobytes, the number of rows, and the number of columns. The results are rendered as text in a `<pre>` element, with the message built from `d3.csvFormat(data).length` and the parsed array’s properties.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.