🌍 Public
Viewing a saved revision (read-only)
36ee49a2507c48be9f26da5715f86b84
Loading CSV
This example demonstrates how to load and display a CSV dataset using D3. It fetches the Iris Dataset from a remote URL and renders the parsed data as a JSON-formatted text block within the page. The code uses `d3.csv()` to asynchronously retrieve and parse the CSV file, then chains `.then()` to append a `<pre>` element to the body via `d3.select()`. The resulting output shows the structured data, making the loading and parsing process visible.
AI-generated descriptionThis example shows how to load a CSV dataset, the Iris Dataset.