Labels on the edge of a graph. Where the labelled points are close together, the labels have been adjusted to avoid overlapping.
https://cdn.fosstodon.org/media_attachments/files/112/735/599/997/377/644/original/0004f31fd1f8fba6.jpeg
Does anyone know the algorithm used for laying out labels like this? The aim is to minimise the vertical distance of labels from their points while preventing them from overlapping. With two labels you can just move them equally far from their common centre if they would overlap, but with more labels this could then introduce new overlaps, so it’s not so trivial. I tried searching but all I could find were algorithms for two-dimensional placement of labels on maps.
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.