Diabetes Data
This example presents a scatter plot of the Pima Indians Diabetes Dataset, visualizing diagnostic measurements such as glucose levels, BMI, and age to explore their relationship with diabetes outcomes. The visualization is built using D3.js (d3.v7) and employs the `select` and `csvParse` APIs to load and structure the CSV data, which is then converted from strings to numeric values. The rendering displays the dataset as raw JSON text within a `<pre>` element, offering a straightforward, data-centric view of the 768 patient records without additional charting layers.
AI-generated descriptionPima Indians Diabetes Dataset: This dataset is derived from the National Institute of Diabetes and Digestive and Kidney Diseases and is commonly used for binary classification tasks in machine learning. It contains diagnostic measurements from a group of Pima Indian women to predict the onset of diabetes.
Source URL: https://www.kaggle.com/datasets/uciml/pima-indians-diabetes-database
Attribute Descriptions Pregnancies: Quantitative (Number of times pregnant).
Glucose: Quantitative (Plasma glucose concentration).
BloodPressure: Quantitative (Diastolic blood pressure).
SkinThickness: Quantitative (Triceps skin fold thickness).
Insulin: Quantitative (2-hour serum insulin).
BMI: Quantitative (Body Mass Index).
DiabetesPedigreeFunction: Quantitative (A function that scores the likelihood of diabetes based on family history).
Age: Quantitative (Age in years).
Outcome: Categorical (0 = non-diabetic, 1 = diabetic).