This is a migrated thread and some comments may be shown as answers.

How to specify the order of shapes in a kendo diagram

3 Answers 143 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Nabil
Top achievements
Rank 1
Nabil asked on 23 Feb 2017, 10:46 AM

Hello,

Is there a solution for specifying the order of diagram shapes ? I am using layered layout 

Thanks

 

3 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 27 Feb 2017, 09:45 AM
Hi Nabil,

You can control the order of the shapes in the diagram through the toFront() and toBack() methods of the widget. Let me know if this is not the type of order you need to control or if further assistance on this matter is needed.

Regards,
Vessy
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Nabil
Top achievements
Rank 1
answered on 27 Feb 2017, 10:36 AM

Hi Vessy,

thanks for your reply,

I want to set the right or left order of the shape. For example, in the attached picture, my problem is how to place yellow shapes at the right of other shapes in the same layer.

0
Vessy
Telerik team
answered on 01 Mar 2017, 10:31 AM
Hi Nabil,

Thank you for the clarification.

I am afraid that the diagram does not provide such shapes reordering API, unless you set the X and Y coordinates for each shape. Otherwise, the shapes will be rendered depending on the sequence in which they are configured.

Regards,
Vessy
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Diagram
Asked by
Nabil
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Nabil
Top achievements
Rank 1
Share this question
or