Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading Data - Diabetes Data

Public visualization

Viewing a saved revision (read-only)

7025be139cf84dbc9a299f88a05de51e

Fork of Loading Data - Diabetes Data

0 stars1🌍 Public
Rrpkupfer@wpi.edu
Last edited Sep 8, 2025
Created on Sep 2, 2025

This example loads a diabetes dataset from a CSV file and displays its raw contents as a JSON-formatted text block. The visualization focuses on the data-loading process, using a state machine to transition from an undefined state to a loading state and finally to the parsed data. The code parses the CSV using D3’s `csvParse` function and converts numeric fields from strings to numbers. The data, sourced from Kaggle, is rendered by fetching the file and displaying the parsed array in a `<pre>` element.

AI-generated description