🌍 Public
Viewing a saved revision (read-only)
7025be139cf84dbc9a299f88a05de51e
Fork of Loading Data - Diabetes Data
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