🌍 Public
Viewing a saved revision (read-only)
9546b64303ce44ba9cded6892812551d
Fork of Loading CSV
This example demonstrates how to load and display a CSV dataset using D3.js. It fetches the Iris Dataset from a remote URL and renders the raw data as formatted JSON text on the page. The visualization first uses D3’s `csv` function to asynchronously load the data, then chains a `.then()` callback to append a `<pre>` element to the body, converting the parsed data to a readable JSON string with `JSON.stringify`. The code relies on D3 v5’s `select` and `csv` APIs, showing a minimal workflow for ingesting tabular data and presenting it in the browser without any charting or interactive elements.
AI-generated descriptionThis example shows how to load a CSV dataset, the Iris Dataset.