Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Diabetes Data

Public visualization

Viewing a saved revision (read-only)

a7ab4e6190d6452da5f672bb854dfa31

Fork of Diabetes Data

0 stars0🌍 Public
Sskasliwal@wpi.edu
Last edited Oct 4, 2025
Created on Oct 4, 2025
Forked from Diabetes Data

A fork of the Pima Indians Diabetes dataset plots BMI against blood glucose levels as a scatterplot, coloring each point red for a positive diabetes outcome and green for a negative one. The visualization loads `data.csv` with `d3.csvParse`, converts all columns to numbers, and renders the chart as SVG using D3 v7 scales, axes, and data joins. The code uses `d3.scaleLinear` for both axes and `d3.extent` to set the domains, producing a static scatterplot without interaction.

AI-generated description