An SVG <line> draws one straight segment inside an SVG container. Set its two endpoints with x1, y1, x2, and y2; coordinates outside the container can leave part of the segment hidden. section 1.2.2
Draw and style a line
Place a line in an SVG, then add stroke to make it visible. stroke-width controls the thickness. <svg> <line x1="50" y1="45" x2="140" y2="225" stroke="black" stroke-width="3" /> </svg> section 1.2.2
Lines are one of the fundamental SVG shapes used when building D3 visualizations. Their position comes from the SVG coordinate system, while presentation attributes provide the visible result. section 1.2.2
Figure 1.12 Positioning a line element in the coordinate system of an SVG container
Inspect the endpoint coordinates against the SVG coordinate system to see how they determine the segment’s placement. section 1.2.2

