Class type Chartjs.axis

method _type : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.prop

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.

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

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.

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

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.

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

Callback that runs after dimensions are set.

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

Callback that runs before data limits are determined.

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

Callback that runs after data limits are determined.

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

Callback that runs before ticks are created.

method afterBuildTicks : ('a Js_of_ocaml.Js.t -> 'tick Js_of_ocaml.Js.js_array Js_of_ocaml.Js.t -> 'tick Js_of_ocaml.Js.js_array Js_of_ocaml.Js.t) Js_of_ocaml.Js.callback Js_of_ocaml.Js.optdef_prop

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.

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

Callback that runs before the scale fits to the canvas.

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

Callback that runs after the scale fits to the canvas.

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

Callback that runs at the end of the update process.