|
|
Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
|
Creates a set of connected straight line segments, using the points attribute.
The <polyline> element draws an open sequence of connected straight-line segments, given a list of vertex coordinates. Unlike <polygon>, a polyline is not automatically closed, so it typically renders as a chain of strokes rather than a filled region. (You can still set a fill, but the result is the path filled as if it were implicitly closed, which is rarely what you want - for closed shapes use <polygon>.)
Use <polyline> for line charts, breadcrumb trails, zig-zag connectors, or any multi-segment path that should remain open.
| Attribute | Default | Description |
|---|---|---|
| points | (none) | List of points to connect with line segments, see Polyline/Polygon Points List. |