I am using the geometry generator to learn how to generate vectors using expressions. Currently, I have a point vector, and I would like to create horizontal lines (shown in red: manually drawn) connecting the points, as illustrated in the image below:
I am aware that the make_line
function allows us to create lines. How should I modify my code to generate a line that passes through these points horizontally?
The condition I intend to use is to connect lines with the same Y coordinates.
make_line(collect($geometry, group_by:=y($geometry))