3.9.11.1Event marker properties

Event markers can have the following properties. The date is compulsory. All other values are optional.

Property

Description

date

Date for the event marker, as a number of milliseconds. Does not have to match the start time of a bar. Will be drawn against the bar containing the specified time.

icon

Hex code of a character from the Font Awesome character set, such as "f0ab"

priority

Priority of the event marker compared to other markers, on a numeric scale from 0 (lowest) to 2 (highest). Determines stacking order if there are multiple markers for a single bar

color

Colour for the marker, as an HTML colour code such as "red" or "#FF0000" or "rgba(255,0,0,0.5)"

text

Text to display if the user clicks on the marker

noLine

If true, specifies that no line should be drawn across the chart for the marker

wantClick

If true, sends notifications when a marker is clicked on (and makes the text setting redundant)

myMarkerId

Optional value which you can use to identify the marker in click notifications