🌍 Public
Activity 6.task 3
This scatter plot visualizes a diabetes dataset, plotting Glucose on the x-axis against Insulin on the y-axis, with data points colored red for diabetic outcomes and green for non-diabetic outcomes. The visualization loads data from a remote CSV file and uses D3 v6 APIs including `csv`, `scaleLinear`, `extent`, `axisBottom`, and `axisLeft` to construct the chart. The SVG rendering is sized to the browser window, with axes labeled and points drawn as circles with a fixed radius of 5 pixels.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed
Comments
Sign in to join the discussion.