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
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Wine 10 Includes Plenty to Excite Users
With its latest release, Wine has the usual crop of bug fixes and improvements, along with some exciting new features.
-
Linux Kernel 6.13 Offers Improvements for AMD/Apple Users
The latest Linux kernel is now available, and it includes plenty of improvements, especially for those who use AMD or Apple-based systems.
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.
-
HashiCorp Cofounder Unveils Ghostty, a Linux Terminal App
Ghostty is a new Linux terminal app that's fast, feature-rich, and offers a platform-native GUI while remaining cross-platform.
-
Fedora Asahi Remix 41 Available for Apple Silicon
If you have an Apple Silicon Mac and you're hoping to install Fedora, you're in luck because the latest release supports the M1 and M2 chips.
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.