anvaka / anvaka/VivaGraphJS

Stabilising Dynamic Graphs

Open
#237 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.9k
Forks
418
PR merge metrics
No merged PRs in 30d

Description

Heya,

First off thanks for the library, its really awesome.

I am facing more a logistical problem when using the library. What I want to do is dynamically create graphs based on user input, but a lot of the time these graphs will have 1-to-many relationships with one central node and many nodes all connecting only to that.

If there are only a few it works fine, but if there are a number of them the graph wont 'stabilise' as it seems a few nodes move and also end up moving other nodes around it. I've looked at other examples and reviewed the options given here and on other parts of the Internet, and it seems that the way to solve this is to change some of the graph settings including the springLength. However because my graph is dynamically generated if I set this to something large to account for bigger groupings, the smaller groupings look insane.

Is there a way to make some of these values dynamic to account for the different spring lengths or be able to set spring lengths for just certain parts of the graph? I have also played around with pausing the rendering, but I need the graph dynamic so people can move and explore the data

Thank you!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the graph settings and the springLength option mentioned in the issue, along with the library's existing examples. Determine whether dynamic or per-subgraph spring lengths are supported, and define done as allowing dynamically generated graphs with different group sizes to stabilize without making smaller groupings unusable.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.