make_line(centroid ($geometry), make_point("x","y")) you can draw a line between the label and the center of an polygon, like this:
Is there a way to draw a line just between the border/edge of the polygon and the label?
The polygons have a transparent fill, so cannot just be drawn over the line.
Yes, the polygons are separate from each other or located at the edges. Is there any possibility to change the ankerpoint from endpoint of the polygon to the nearest point between the edge/border of the polygon and the label?
So that i can adjust the Label all around the polygon with a connection line between label and polygon edge/border?