Class type Chartjs.legend
method position : Position.t Js_of_ocaml.Js.t Js_of_ocaml.Js.prop
Position of the legend.
method fullWidth : bool Js_of_ocaml.Js.t Js_of_ocaml.Js.prop
Marks that this box should take the full width of the canvas (pushing down other boxes). This is unlikely to need to be changed in day-to-day use.
method onClick : (chart, Js_of_ocaml.Dom_html.event Js_of_ocaml.Js.t -> legendItem Js_of_ocaml.Js.t -> unit) Js_of_ocaml.Js.meth_callback Js_of_ocaml.Js.optdef_prop
A callback that is called when a click event is registered on a label item
method onHover : (chart, Js_of_ocaml.Dom_html.event Js_of_ocaml.Js.t -> legendItem Js_of_ocaml.Js.t -> unit) Js_of_ocaml.Js.meth_callback Js_of_ocaml.Js.optdef_prop
A callback that is called when a 'mousemove' event is registered on top of a label item
method onLeave : (chart, Js_of_ocaml.Dom_html.event Js_of_ocaml.Js.t -> legendItem Js_of_ocaml.Js.t -> unit) Js_of_ocaml.Js.meth_callback Js_of_ocaml.Js.optdef_prop
method reverse : bool Js_of_ocaml.Js.t Js_of_ocaml.Js.prop
Legend will show datasets in reverse order.
method labels : legendLabels Js_of_ocaml.Js.t Js_of_ocaml.Js.prop
Legend label configuration.