Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

q2

Public visualization

q2

0 stars1🌍 Public
Nnagalakshmibadineedi2@gmail.com
Last edited Apr 9, 2025
Created on Apr 9, 2025
Forked from Network Structure

This example displays a network graph of a simplified diabetes dataset, connecting three patient nodes (Patient A, B, C) to attribute nodes representing glucose levels, BMI categories, and diabetic outcome. The force-directed layout positions nodes based on simulated physical forces. Built with D3 v7, the visualization uses `d3.forceSimulation` to handle the physics, combining `d3.forceLink` for edges, `d3.forceManyBody` for repulsion, and `d3.forceCenter` for centering. Nodes are colored by group (patient, glucose, BMI, outcome) using `d3.scaleOrdinal` with the `schemeCategory10` palette; node positions update on each simulation tick, rendering with SVG `line` and `circle` elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed