Convert data to diagrams with yEd
Written Material
In the next step, you can label the existing symbols if necessary. To do this, first click the element you want to label with the right mouse button and select Add Label in the context menu. The editor now opens a box with a red outline above the symbol in which you can enter the text. Pressing Enter tells the yEd tool to center the string above the element. Alternatively, you can enter the text in the context-dependent Properties | General Text area.
You can position the box with the text freely with respect to the element. To do so, left-click the label outside of the symbol to tell the software to switch to editor mode. The program shows this change as a double outline. Next, move the box by dragging it to the desired location.
The application displays grid lines that make it easy to adjust the frame with respect to the symbol (e.g., centering it below the element). Then, right-click within the frame and select Properties in the context menu. The editor will now open another window with formatting buttons (Figure 3).

When you enter text with the Add Label option, yEd shows you the entire content you enter in a single line; this can appear very clumsy, especially if you have entered a long piece of text. However, you can use the Text dialog box in the General tab to enable line breaks so that your text input adapts to the length of the symbol.
Layout
Even simple charts can be rather confusing if they have many nodes and you design them without an underlying structure. To solve this problem, the program offers a variety of automatic layout solutions. Once you have completed a chart, you can change the layout by calling one of the options in the Layout menu, which you will find in the menubar at the top of the program window.
After clicking on one of the alternatives available there, yEd opens a window in which you can set various parameters. To confirm, click Ok at the bottom left in the window. The program then arranges the content according to your specifications. yEd offers many layout options, and nearly all of these options offer many additional settings for individual elements, so it is worthwhile experimenting with the alternatives.
To restore to the state before a change was made in a chart, select Undo, the first entry in the Edit menu. The program then shows the original chart in the editor again. If the chart is too big for a complete view, you can customize the size using the zoom function, so that you can see the entire chart. The Show entire graph switch in the button bar supports automatic scaling (Figure 4).

Once you have found a suitable structure via the layout function, you can still adjust the individual elements if necessary. To help you do so, the software provides a function for defining a grid for the work area. This helps you more easily align each symbol. Select the grid by clicking the Grid button in the tool bar.
Lined Guide
Especially in large charts with many intersecting lines between nodes, it is often easy for the viewer to lose track of the paths. To remedy this, yEd offers a function for automatic routing of the existing lines. Again, you can choose between different modes and experiment until the result satisfies your expectations.
You can access this tool in the Layout | Edge Routing menu. In the corresponding submenu, click the desired line and then configure the required settings in the dialog. Besides setting the distances between individual lines, you can also define a distance between the nodes and specify whether the software also adjusts the labels. The number of existing intersections is another parameter you can set in the dialogs.
After pressing Ok, the software makes the changes. You should still check the results, especially for complex charts: Overlapping lines and labels will typically occur in the context of captions on central nodes. It is advisable to move the text blocks of the nodes manually in this case (Figure 5).

« Previous 1 2 3 Next »
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Direct Download
Read full article as PDF:
Price $2.95
News
-
Mozilla VPN Now Available for Linux
The promised subscription-based VPN service from Mozilla is now available for the Linux platform.
-
Wayland and New App Menu Coming to KDE
The 2021 roadmap for the KDE desktop environment includes some exciting features and improvements.
-
Deepin 20.1 has Arrived
Debian-based Deepin 20.1 has been released with some interesting new features.
-
CloudLinux Commits Over 1 Million Dollars to CentOS Replacement
An open source, drop-in replacement for CentOS is on its way.
-
Linux Mint 20.1 Beta has Been Released
The first beta of Linux Mint, Ulyssa, is now available for downloading.
-
Manjaro Linux 20.2 has Been Unleashed
The latest iteration of Manjaro Linux has been released with a few interesting new features.
-
Patreon Project Looks to Bring Linux to Apple Silicon
Developer Hector Martin has created a patreon page to fund his work on developing a port of Linux for Apple Silicon Macs.
-
A New Chrome OS-Like Ubuntu Remix is Now Available
Ubuntu Web looks to be your Chrome OS alternative.
-
System76 Refreshes the Galago Pro Laptop
Linux hardware maker has revamped one of their most popular laptops.
-
Dell Will Soon Enable Privacy Controls for Linux Hardware
Dell makes it possible for Linux users to disable webcams and microphones.