🌍 Public
Viewing a saved revision (read-only)
f41e1d23ccc94198a20fdcf4eb2c15ab
Loading Data 3
This example demonstrates how to load and display CSV data from either a local file or a remote source using D3 v7's `csvParse` and `fetch` APIs. It presents a file input that lets users choose a CSV file, while also automatically loading a default `plane.csv` dataset containing airline flight information. The parsed data is rendered as a JSON-formatted text preview inside a `<pre>` element, with all numeric columns converted to numbers during parsing. The visualization updates dynamically whenever new data is loaded.
AI-generated description