package chartjs

  1. Overview
  2. Docs
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.

Color of text.

Font family of legend text.

method padding : int Js_of_ocaml.Js.prop

Padding between rows of colored boxes.

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

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).

OCaml

Innovation. Community. Security.