jimmybow / visdcc

Dash Core Components for Visualization.
MIT License
144 stars 18 forks source link

How to change the layout of the generated Graph? #11

Closed KaleabTessera closed 5 years ago

KaleabTessera commented 5 years ago

Hi,

How would we go about changing the layout of the plotted graph? For example, if we wanted more space between the nodes.

jimmybow commented 5 years ago

Hi, you can set the initial position (x, y) for your nodes. See documents of vis.js for setting of nodes : https://visjs.github.io/vis-network/docs/network/nodes.html

or, you can use hierarchical for your layout, see https://visjs.github.io/vis-network/docs/network/layout.html

KaleabTessera commented 5 years ago

Thanks!