PERGOLA LOGO

Markers Library

A marker definition is a method of the pergola.marker object (defined in lib/markers.js). Markers are not created at runtime. The function creates and appends the marker element to pergola.defs if it doesn't exist in the document. Returns the URI string.

Except for the dot marker (<circle>), for which you can specify radius, fill, and stroke, the functions don't expect parameters, and the marker cannot be modified programmatically.

Example page showing the available markers (currently the markers are not categorized). See the MARKERS library section in tutorial for definition and use.

pergola.marker

pergola.marker.arrow1()

Returns the marker's URI string.

pergola.marker.dot([object])

If object is specified it may define these attributes:

Returns the marker's URI string.

pergola.marker.terminalStart()

Returns the marker's URI string.

pergola.marker.terminalEnd()

Returns the marker's URI string.

pergola.marker.chevron()

Returns the marker's URI string.

pergola.marker.chevronDbl()

Returns the marker's URI string.

pergola.marker.secant()

Returns the marker's URI string.

pergola.marker.verticalBarDbl()

Returns the marker's URI string.

pergola.marker.intersect()

Returns the marker's URI string.

pergola.marker.cross()

Returns the marker's URI string.

pergola.marker.arrowBaseArc()

Returns the marker's URI string.

pergola.marker.arrowBaseArcSmall()

Returns the marker's URI string.

pergola.marker.arrowBaseArrow()

Returns the marker's URI string.

pergola.marker.bullseye()

Returns the marker's URI string.

pergola.marker.marker()

Returns the marker's URI string.