jquery - Cytoscape.js: Needed linear layout -


i trying use cytoscape.js create network diagram. there couple of layout design nodes , links upward downward. 1 of them "dagre" layout. but, want display same layout left right. have no luck find such option.

is there way can achieve this. sharing image url. http://share.pho.to/9m6sa . combination of 2 images a) getting using "dagre" layout b) needed.

any appreciated.

thanks

chop's suggestion one, since many layouts wrappers external libraries dagre. example of suggestion in practice:

cy.one('layoutstop', function(){   cy.nodes.positions(function(n){     var pos = n.position();     return { x: pos.y, y: pos.x };   });    cy.fit(); // fit new node positions }).layout({ /* options... */ }); 

Comments

Popular posts from this blog

python 3 IndexError: list index out of range -

android - How to save instance state of selected radiobutton on menu -

IF statement in MySQL trigger -