🌍 Public
Viewing a saved revision (read-only)
5f8b8102bd2b44f99ec1c7a8e519aa20
Loading CSV
This example demonstrates loading an external CSV dataset—the Iris Dataset—and displaying its contents as formatted JSON in the browser. Using D3 v5’s `csv` function, it fetches the data asynchronously and, upon resolution, appends a `<pre>` element to the body with `JSON.stringify` to render the parsed array with indentation. The code imports `select` and `csv` directly from the D3 module, relying on Promises to handle the data load.
AI-generated descriptionThis example shows how to load a CSV dataset, the Iris Dataset.