stevekirks / d3-force-diagram

D3 force diagram with highlight search, 2 node levels, and detail display

Home Page:https://stevekirks.github.io/d3-force-diagram/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cd

D3 Force Diagram | Demo

Built in Typescript with d3 v7

Features

  • node highlighting (type in search field or click one or more nodes)
  • node dragging (click and drag a node)
  • node selection and display of metadata (single-click a node)
  • node hierarchy up to two levels in depth (double-click a node to explode or re-group)

Usage

Requires npm. Clone this repository, then run

npm install
npm run start

Data format

Sample data is stored in the public/data folder and set in the .env file.

About

D3 force diagram with highlight search, 2 node levels, and detail display

https://stevekirks.github.io/d3-force-diagram/

License:MIT License


Languages

Language:TypeScript 89.7%Language:CSS 7.9%Language:HTML 2.3%Language:JavaScript 0.1%