Viewing a saved revision (read-only)
d278360e099b4739984369f304b6e5f1
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 descriptionThis dataset documents diabetes information and predicted
outcome of diabetic state.
Pregnancies: To express the Number of pregnancies:
Quantitative Glucose: To express the Glucose level in blood:
Quantitative BloodPressure: To express the Blood pressure
measurement: Quantitative SkinThickness: To express the
thickness of the skin: Quantitative Insulin: To express the
Insulin level in blood: Quantitative BMI: To express the
Body mass index: Quantitative DiabetesPedigreeFunction: To
express the Diabetes percentage: Quantitative Age: To
express the age: Quantitative Outcome: To express the final
result 1 is Yes and 0 is No: Categorical
This dataset can be found here: https://www.kaggle.com/datasets/akshaydattatraykhare/diabetes-dataset