Skip to main content
100%

Fork of Interactive Force Directed Layout

✓ Published0🌍 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.

MIT Licensed

Similar vizzes