nabil6391 / graphview

Flutter GraphView is used to display data in graph structures. It can display Tree layout, Directed and Layered graph. Useful for Family Tree, Hierarchy View.
MIT License
415 stars 115 forks source link

Why In SugiyamaAlgorithm nodes are aligned with top when tree depth is unbalanced #96

Closed lakharasachin-qf closed 1 year ago

lakharasachin-qf commented 1 year ago

0414DA52-D30A-4937-9CF3-A60DDB58DEB1_1_201_a

Why Node 1 is not in the same level of node 2. But when i add 3 more on top of node 1 then it will comes on the same level of Node 2.

Please help to figure this out...

nabil6391 commented 1 year ago

i will take a look at this, can you help export this data so that i can test

lakharasachin-qf commented 1 year ago

i will take a look at this, can you help export this data so that i can test

I had change the file "SugiyamaEdgeRenderer.dart" as per my requirement
here is the file link

SugiyamaEdgeRenderer.dart: https://drive.google.com/file/d/19P85R9C5bC5VDM6YqNtveH1-9r4QNxWE/view?usp=share_link

Exported Json: https://drive.google.com/file/d/1MT6Mu8Lr9TxeLGSPO0Po_xwJZyiBZWLS/view?usp=share_link

I am trying to change in "SugiyamaAlgorithm.dart" file but i m unable to figure it out. Please help

lakharasachin-qf commented 1 year ago

i will take a look at this, can you help export this data so that i can test

@nabil6391 did you get time to take a look on the issue

nabil6391 commented 1 year ago

Try out 1.2.0 , added a new CoordinateAssignment to allow users to adjust alignment