Skip to main content
100%

Network Graph

✓ Published0🌍 Public
NNandini Maddula
Last edited Apr 3, 2024
Created on Apr 2, 2024
Forked from D3 Starter

This network graph visualizes a hierarchical animal classification tree, grouping species into Herbivores, Omnivores, and Carnivores. Nodes are color-coded by dietary type, such as lightgreen for Pandas and lightcoral for Asiatic Lions. The code uses D3 v7’s `d3.forceSimulation` with charge, link, and center forces to position the nodes and links dynamically. SVG circles and text labels render each node, while links are styled as blue lines whose thickness scales with the `value` field. Drag behavior allows interactive repositioning of nodes during simulation ticks.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes