package chartjs

  1. Overview
  2. Docs
inherit ticks
method autoSkip : bool Js_of_ocaml.Js.t Js_of_ocaml.Js.prop

If true, automatically calculates how many labels that can be shown and hides labels accordingly. Turn it off to show all labels no matter what.

method autoSkipPadding : int Js_of_ocaml.Js.prop

Padding between the ticks on the horizontal axis when autoSkip is enabled. Note: Only applicable to horizontal scales.

method labelOffset : int Js_of_ocaml.Js.prop

Distance in pixels to offset the label from the centre point of the tick (in the y direction for the x axis, and the x direction for the y axis). Note: this can cause labels at the edges to be cropped by the edge of the canvas.

method maxRotation : int Js_of_ocaml.Js.prop

Maximum rotation for tick labels when rotating to condense labels. Note: Rotation doesn't occur until necessary. Note: Only applicable to horizontal scales.

method minRotation : int Js_of_ocaml.Js.prop

Minimum rotation for tick labels. Note: Only applicable to horizontal scales.

method mirror : bool Js_of_ocaml.Js.prop

Flips tick labels around axis, displaying the labels inside the chart instead of outside. Note: Only applicable to vertical scales.

method padding : int Js_of_ocaml.Js.prop

Padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.

OCaml

Innovation. Community. Security.