package chartjs

  1. Overview
  2. Docs

Type of scale being employed Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart.

Controls the axis global visibility (visible when true, hidden when false). When display is 'auto', the axis is visible only if at least one associated dataset is visible.

method weight : float Js_of_ocaml.Js.optdef_prop

The weight used to sort the axis. Higher weights are further away from the chart area.

Callback called before the update process starts.

method beforeSetDimensions : ('a Js_of_ocaml.Js.t -> unit) Js_of_ocaml.Js.callback Js_of_ocaml.Js.optdef_prop

Callback that runs before dimensions are set.

Callback that runs after dimensions are set.

Callback that runs before data limits are determined.

Callback that runs after data limits are determined.

Callback that runs before ticks are created.

Callback that runs after ticks are created. Useful for filtering ticks.

  • returns

    the filtered ticks.

method beforeTickToLabelConversion : ('a Js_of_ocaml.Js.t -> unit) Js_of_ocaml.Js.callback Js_of_ocaml.Js.optdef_prop

Callback that runs before ticks are converted into strings.

method afterTickToLabelConversion : ('a Js_of_ocaml.Js.t -> unit) Js_of_ocaml.Js.callback Js_of_ocaml.Js.optdef_prop

Callback that runs after ticks are converted into strings.

method beforeCalculateTickRotation : ('a Js_of_ocaml.Js.t -> unit) Js_of_ocaml.Js.callback Js_of_ocaml.Js.optdef_prop

Callback that runs before tick rotation is determined.

method afterCalculateTickRotation : ('a Js_of_ocaml.Js.t -> unit) Js_of_ocaml.Js.callback Js_of_ocaml.Js.optdef_prop

Callback that runs after tick rotation is determined.

Callback that runs before the scale fits to the canvas.

Callback that runs after the scale fits to the canvas.

Callback that runs at the end of the update process.