I am using the cytoscape js library for displaying a hierarchy of images. I followed the example on http://jsbin.com/gist/aedff159b0df05ccfaa5?js,output and found that the breadthfirst layout is what I need.
However, I find the rendered result unsatisfactory due to too much unused space. The arrows are too long. Even the example (http://jsbin.com/gist/aedff159b0df05ccfaa5?js,output) has this issue. For this example, I tried the following
- Increase the "height/width" in
.selector('node') .css({
- Muck around with the
distanceX
anddistanceY
(node spacing) variables inlayout.breadthfirst.js
(line 352).
I am unable to reduce the unused space or reduce the length of the arrows.