Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading CSV

Public visualization

Viewing a saved revision (read-only)

dcdd75a8978a44aea0a4a72cc53652b2

Fork of Loading CSV

0 stars0🌍 Public
MM Hema
Last edited Mar 4, 2024
Created on Mar 4, 2024
Forked from 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 description

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