Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

world-happiness-data

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed