Network Graph
✓ Published0🌍 Public
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 descriptionA demonstration of how to start using D3 version 6.
MIT Licensed