Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

Can I force Yed to choose hierarchy layers based on a property of the nodes?

+2 votes
Hi - I have nodes, with properties like '2006', '2007', '2008'. I'd like to draw a hierarchy graph, showing the relationships between those nodes, but keeping each year on the same layer.

Is that possible with the UI tool? Or some approximation/hack to get close?

 

thanks!
in Help by

1 Answer

+1 vote

This feature is on our list of possible improvements of yEd, but there is already a work-around. First, use the tool Properties Mapper to set the x- or y-coordinates of the nodes according to your data, then run a Hierarchic Layout with setting Layer Assignment set to From Sketch.

For this to work, nodes of different layers must not overlap before the run of the layout, that is, you cannot use the years directly as coordinates. If your data is imported from Excel, another column calculated with a simple formula like 100*(YEAR-2006) will do the trick.
by [yWorks] (26.8k points)
Legal Disclosure | Privacy Policy
...