🌍 Public
Viewing a saved revision (read-only)
ca4d15d895614b2ab3f0398a833ab267
activity6 task3
This example visualizes a diabetes dataset as a scatter plot, mapping glucose levels on the x-axis against insulin levels on the y-axis. Data points are colored red for diabetic outcomes and green for non-diabetic outcomes, loaded from a remote CSV via `d3.csv`. The visualization uses D3 v6 with `scaleLinear`, `extent`, `axisBottom`, and `axisLeft` to render axes, while circles are positioned with `attr` and styled with `fill`. The SVG is dynamically sized to the browser window, with axis labels styled via CSS.
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.