package chartjs

  1. Overview
  2. Docs

The tick configuration is nested under the scale configuration in the ticks key. It defines options for the tick marks that are generated by the axis.

method callback : 'a tick_cb Js_of_ocaml.Js.prop

Returns the string representation of the tick value as it should be displayed on the chart.

If true, show tick marks.

Font color for tick labels.

Font family for the tick labels, follows CSS font-family options.

method fontSize : int Js_of_ocaml.Js.optdef_prop

Font size for the tick labels.

Font style for the tick labels, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).

Reverses order of tick labels.

Minor ticks configuration. Omitted options are inherited from options above.

Major ticks configuration. Omitted options are inherited from options above.

OCaml

Innovation. Community. Security.