Skip to main content
100%

activity6 task 3

✓ Published0🌍 Public
Ssiri2001j@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from Hello VizHub

This scatter plot visualizes the relationship between glucose and insulin levels in a diabetes dataset, with points colored red or green to indicate diabetic or non-diabetic outcomes. It loads CSV data from a GitHub repository using d3.csv, then applies d3.scaleLinear, d3.extent, d3.axisLeft, and d3.axisBottom to map the values. The chart renders as an SVG with circles positioned via cx and cy attributes, using window dimensions to size the plot responsively.

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.
MIT Licensed

Similar vizzes