Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Interactive Force Directed Layout

Public visualization

Fork of Interactive Force Directed Layout

0 stars0🌍 Public
SSatpreet Makhija
Last edited Jun 15, 2021
Created on Jun 15, 2021

This example shows an interactive force-directed network layout where users can push and pull nodes around a continuously updating graph. The code uses the GoJS library’s `ForceDirectedLayout` with a custom `ContinuousForceDirectedLayout` subclass that keeps selected nodes fixed while repositioning all others. A `SelectionMoved` event and overridden `doMouseMove` method trigger layout invalidations during drags, and the layout network is cached for optimization. The diagram displays circular nodes with text labels connected by arrowed links, rendered in a web page using HTML and JavaScript.

AI-generated description

An example showing the capabilities of VizHub.

Comments

Sign in to join the discussion.

MIT Licensed