Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

world-happiness-data

Public visualization

Viewing a saved revision (read-only)

ca448c90118b4caead96f5d1370b12b5

world-happiness-data

0 stars1🌍 Public
Ccsabavath@wpi.edu
Last edited Sep 3, 2025
Created on Sep 3, 2025

This example demonstrates the process of loading and parsing a CSV dataset containing measurements of iris flowers. The visualization initially shows a JSON representation of the parsed data, displaying all 150 records with their sepal and petal dimensions. The code uses D3's `csvParse` function to convert the raw CSV text into structured data, then converts the numeric string values to numbers. The `select` function and `.join('pre')` method render the data as text in the container, while the `fetch` API retrieves the data.csv file from the server.

AI-generated description