package chartjs-annotation

  1. Overview
  2. Docs

Class type Chartjs_annotation.annotationSource

method drawTime : Draw_time.t Js_of_ocaml.Js.t Js_of_ocaml.Js.prop

Defines when the annotations are drawn. This allows positioning of the annotation relative to the other elements of the graph.

method events : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.js_array Js_of_ocaml.Js.t Js_of_ocaml.Js.prop

Mouse events to enable on each annotation. Should be an array of one or more browser-supported mouse events

method dblClickSpeed : float Js_of_ocaml.Js.prop

Double-click speed in ms used to distinguish single-clicks from double-clicks whenever you need to capture both. When listening for both click and dblclick, click events will be delayed by this amount.

method annotations : baseAnnotation Js_of_ocaml.Js.t Js_of_ocaml.Js.js_array Js_of_ocaml.Js.t Js_of_ocaml.Js.prop

Array of annotation configuration objects.