🌍 Public
Viewing a saved revision (read-only)
75492ccdf04b4063a945c6ef96fcbb00
Loading Csv files
This example demonstrates the basic mechanics of loading and parsing a CSV file using D3. It shows a count of the file's size in kilobytes, the number of rows, and the number of columns displayed prominently on the page. The code uses `d3.csv` to fetch data from a GitHub gist containing CSS named colors, then calculates the formatted string length with `d3.csvFormat`. It also includes a commented-out alternative approach using the Fetch API with `async`/`await` and `d3.csvParse`.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.