Create diagram using layout algorithm

1 Answer 71 Views
Diagram
Parth
Top achievements
Rank 1
Iron
Iron
Parth asked on 15 Apr 2024, 05:03 AM

Can you please help me to createing the diagram layout algoritham to set diagram, because we cannot set static position of all nodes.

We want these types of layouts to be in the image.

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 16 Apr 2024, 02:29 PM

Hello Parth,

The layouts shown in the pictures are very specific and do not match exactly neither of the built-in layout algorithms. Anyway, you can try the built-in layout feature and see if the behavior there is close enough to your requirements. You can play with the different layout settings in the following SDK example.

Note that if you need the shapes positioned exactly as shown in your pictures, you will need to manually calculate the positions and set the Position property of the shape elements. There is no example that I can suggest for this, because this scenario seems very specific for this concrete application. Also, there aren't any clear requirements on how this layout should work in order to write an algorithm, and also such algorithm will probably require a noticeable amount of time to develop and implement.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Diagram
Asked by
Parth
Top achievements
Rank 1
Iron
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or