Skip to main content
100%

Loading CSV

✓ Published0🌍 Public
LLinkous
Last edited Dec 26, 2019
Created on Dec 26, 2019
Forked from 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 description

This example shows how to load a CSV dataset, the Iris Dataset.

MIT Licensed

Similar vizzes