I am a beginner in QGIS. I'm using QGIS 3.32.
I have several rectangular symbols that are sometimes close together or overlapping. Each symbol has its own size (ellipse marker, width and height defined by data with expressions), with transparent background. All symbols must have their own label. I have moved by hand the labels of the most congested areas (see image, simplified example), but I still cannot optimally resolve callouts start anchor.
I have set the label placement in Cartographic, and distance offset "From Symbol Bounds", but I can't get the line to start at the edge of the symbol, it always starts from the centroid. With a little Pythagoras I was able to get it closer, but it's not perfect.
Is it possible to make the callout line start just at the edge of the symbol?
I read many answers about use Geometry Generator, but I have not achieved good results, I lack too much knowledge on that topic, and sometimes it's a bit confusing where to write the GG expressions.