Class type Chartjs.ticks

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.

method display : bool Js_of_ocaml.Js.t Js_of_ocaml.Js.prop

If true, show tick marks.

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

Font color for tick labels.

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

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.

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

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

method reverse : bool Js_of_ocaml.Js.t Js_of_ocaml.Js.prop

Reverses order of tick labels.

method minor : minorTicks Js_of_ocaml.Js.t

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

method major : majorTicks Js_of_ocaml.Js.t

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