🌍 Public
Viewing a saved revision (read-only)
375ad3b1ad8c4c1893cb5dcf0cda102f
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.