🌍 Public
Viewing a saved revision (read-only)
5608e47c8a66478688ad6cd442c900c4
Activity6_task3
This scatter plot visualizes the relationship between glucose and insulin levels in a diabetes dataset, with each point colored red or green to indicate the presence or absence of diabetes based on the Outcome variable. The visualization loads CSV data from a GitHub gist using D3’s `csv` method, then constructs linear scales with `scaleLinear` and `extent` to map the data to screen coordinates. It renders SVG circles for each data point, with axes created via `axisBottom` and `axisLeft`, and includes green axis labels for Glucose and Insulin.
AI-generated descriptionCreating circles with D3.
Challenge
- Fork this example
- Modify it
- Maybe make it Halloween themed
- Maybe make it Christmas themed
- Be creative