cytoscape / cytoscape.js-dagre

The Dagre layout for DAGs and trees for Cytoscape.js
MIT License
246 stars 82 forks source link

Reversing DAG direction #33

Closed nanodeath closed 6 years ago

nanodeath commented 6 years ago

I understand how to make the DAG go from top -> bottom, based on #4, but what if I want to go bottom -> top -- so that the arrows are all pointing upwards?

nanodeath commented 6 years ago

Found it -- it's documented on the dagre page itself, here. Setting rankDir: 'BT' in the layout did the trick.

The API at the root of this repo mentions rankDir, but only TB and LR as available options.