Class type Chartjs.legendLabels

method boxWidth : int Js_of_ocaml.Js.prop

Width of coloured box.

method fontSize : int Js_of_ocaml.Js.optdef_prop

Font size of text.

method fontStyle : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

Font style of text.

method fontColor : Color.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

Color of text.

method fontFamily : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

Font family of legend text.

method padding : int Js_of_ocaml.Js.prop

Padding between rows of colored boxes.

method generateLabels : (chart Js_of_ocaml.Js.t -> legendItem Js_of_ocaml.Js.t Js_of_ocaml.Js.js_array Js_of_ocaml.Js.t) Js_of_ocaml.Js.callback Js_of_ocaml.Js.prop

Generates legend items for each thing in the legend. Default implementation returns the text + styling for the color box.

method filter : ('selflegendItem Js_of_ocaml.Js.t -> data Js_of_ocaml.Js.t -> bool Js_of_ocaml.Js.t) Js_of_ocaml.Js.meth_callback Js_of_ocaml.Js.optdef_prop

Filters legend items out of the legend. Receives 2 parameters, a Legend Item and the chart data.

method usePointStyle : bool Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

Label style will match corresponding point style (size is based on fontSize, boxWidth is not used in this case).