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

How to better fit labels to edges in Hierarchical Layout?

0 votes

Hello,

 

I have the layout shown below.  I'd like to compact it so that everything gets bigger and easier to see without zooming.  To efficiently compact it, the labels on the long edges need to be oriented parallel to the edge direction.

However I can't seem to get that to work.  You can see my label settings.  Which ones do I need to change?

Thanks,

Neville

in Help by

1 Answer

0 votes

The hierarchic layout algorithm respects your edge labels' preferred placement setting. With this in mind, try the following approach:

      1. Select all the edge labels that should be placed parallel to the corresponding edge segment.
  2. Adjust the properties of the selected edge labels as follow.
  2.1. Choose an a "Placement" option that supports rotation. The default placement "SmartFree: Anywhere" is a good choice.
  2.2. Choose "Anywhere parallel" as "Preferred Placement".
  3. Adjust the settings of the hierarchic layout.
  3.1. In section "Labeling", set option "Edge Labeling" to value "Hierarchic",
  3.2 set option "Edge Label Model" to value "As Is",
  3.3 and select option "Compact Placement".
  4. Run the hierarchical layout algorithm.

 

by [yWorks] (147k points)
Where is the option "Compact Placement"?
Legal Disclosure | Privacy Policy
...