The marker-end attribute draws a polymarker or arrowhead at the last vertex of a given shaped markable element. Except for polyline and path, the first vertex is the same as the last vertex for all the markable elements. In this case, if the value of both marker-start and marker-end is not “none”, then both the markers will be rendered on the last vertex. The marker-end property is only rendered on the last vertex of the path data. The marker-mid property has its effect only on the following seven elements which are path, polyline, polygon, line, circle, ellipse, and rect.
marker-end = "marker-reference | none"
Attribute values: This attribute accepts two values as mentioned above and described below.
- marker-reference: It draws a marker at the last vertex of elements.
- none: It does not add any marker at the last vertex of the element.
Example 1: Below is the code which illustrates the use of marker-end property with the value of marker-reference.
Example 2: Below is the code which illustrates the use of marker-end property with value “none”.