Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity6 task3

Public visualization

activity6 task3

0 stars0🌍 Public
Bbrahmateja.edu2023@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024

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 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