Setting node x, y coordinates #512
Replies: 1 comment
-
We can make use of 'preset' layout for this to work! Graphin has 2 built-in layouts, namely graphin-force: It is a force-guided layout algorithm based on the charge spring model. It has a built-in tweakalgorithm that can realize incremental layout of force-guided Alternatively, when instantiating the graph without configuration layout: |
Beta Was this translation helpful? Give feedback.
-
Is there a way we can supply node x and y coordinates for each node in a graph before being rendered?
I tried supplying
x
andy
coordinates to the graph state to render like so:But turns out the graph layout overrides these coordinates. How can I make supplied coordinates take precedence?
Beta Was this translation helpful? Give feedback.
All reactions