Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_task3

Public visualization

Viewing a saved revision (read-only)

5608e47c8a66478688ad6cd442c900c4

Activity6_task3

0 stars0🌍 Public
Vvidiyalasahithi1999@gmail.com
Last edited Apr 17, 2024
Created on Apr 15, 2024

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 description

Creating circles with D3.

Challenge

  • Fork this example
  • Modify it
  • Maybe make it Halloween themed
  • Maybe make it Christmas themed
  • Be creative