🌍 Public
Viewing a saved revision (read-only)
9a3bed358b004acb974a6bfbd595f45c
Loading and parsing CSV data
This example demonstrates loading and parsing a CSV file of CSS named colors from a remote URL, then displaying a summary of the parsed data. It fetches the raw text using the browser’s `fetch` API, parses it with `d3.csvParse`, and reports the row count, column count, and file size in kilobytes within a `<pre>` element. The code uses D3 v7 and relies on JavaScript’s async/await for the network request.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.