Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_task3

Public visualization

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

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.

Comments

Sign in to join the discussion.

MIT Licensed