Polyline in svg defines a polyline based on a given coordinates and style attributes. SvgDreams library has a class for defining a polyline.
$polylineObj = new Polyline("Polyline1");
   $polylineObj->strokeWidth = "3";
   $polylineObj->points = $points;
   $polylineObj->stroke = "#3b5998";
   $polylineObj->fill = "#fff";
Sample polyline in SVG:
The PHP code of the polyline above is available in shapes_polyline_0.php.


public function setPoints($points)
Defines the points of the shape
$points: Array of points defining the shape
function __construct($itemId)
Constructor of the polyline class needs an id for the line element. We suggest you to define a unique ID.

All rights reserved. See license