🌍 Public
Viewing a saved revision (read-only)
beef8f4a788a4c79b1302ece4b9170d0
Loading CSV
This example demonstrates how to load and display the Iris Dataset as raw JSON text on a webpage. It uses D3 v5’s `csv` function to fetch the remote CSV file, then converts the parsed data into a formatted JSON string via `JSON.stringify` and appends it to the body inside a `<pre>` element. The code relies on D3’s `select` method to target the document body for the output, showcasing a minimal workflow for fetching external tabular data and inspecting its structure.
AI-generated descriptionThis example shows how to load a CSV dataset, the Iris Dataset.