type
Specifies the shape type to be drawn. If "line", a line is drawn from (x0
,y0
) to (x1
,y1
) with respect to the axes' sizing mode. If "circle", a circle is drawn from ((x0
+x1
)/2, (y0
+y1
)/2)) with radius (|(x0
+x1
)/2 - x0
|, |(y0
+y1
)/2 -y0
)|) with respect to the axes' sizing mode. If "rect", a rectangle is drawn linking (x0
,y0
), (x1
,y0
), (x1
,y1
), (x0
,y1
), (x0
,y0
) with respect to the axes' sizing mode. If "path", draw a custom SVG path using path
. with respect to the axes' sizing mode.