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.


How to specify which parameter fills each label when importing from .xls?

0 votes
I have a table of edges with three text parameters: Source Port, Destination Port, and Throughput and already choose "3 pos center" on Layout>Label placement>Model . After importing data from this table to the diagram, I want the 1st one close to the source node, the 2nd one close to the destination node and the 3rd one in the middle. When it's imported it goes one way, but when I click at "one-click layout" it change the orders. There is a way to configure the properties mapper to not fill label 1, 2 and 3 randomly but in the exact order I want?
in Help by

1 Answer

0 votes

When using properties mapper to change the text of a label, properties mapper uses the index of the label to determine which label to change. So, yes, you actually have to specify exactly which label to change.

With One-Click layout you cannot expect labels to be placed in a certain way. The algorithm will choose a layout strategy that is the most appropriate for the overall structure of the graph/diagram (according to its internal metrics). This may result in layout strategies that simply do not support label placement at all.

If you need control over label placement, use one of the layout algorithms that explicitly support (integrated) label placement or yEd's "Label Placement" algorithm.

In any case, be sure to set your edge label's "Preferred Placement" property to match the desired label placement. "Preferred Placement" tells an algorithm where to place labels (if it supports label placement), while "Placement" restrict the valid placement options. When placing labels with an algorithm, restricting valid placement options is not a good idea. In this case, use "SmartFree" or "Free" as "Placement".

by [yWorks] (160k points)
Legal Disclosure | Privacy Policy