vizulyDecember 20, 2016 at 1:54 pm #6827
That is a good question.
The primary layout for the tree is generated by D3, but I suspect we could sort the children for each branch.
The place I would start is in the refreshData() function at line 170 in the viz/weightedtree.js file. Specifically there is a nested function called setChildren(), where it sets a default x/y position. I would try to apply whatever sort you want to the children at this place and see if D3 respects the array sort order (which I think it will.)
Good luck and let me know what you find out.
You must be logged in to reply to this topic.
© 2021 — vizuly.io