package chartjs

  1. Overview
  2. Docs
method barPercentage : float Js_of_ocaml.Js.prop

Percent (0-1) of the available width each bar should be within the category width. 1.0 will take the whole category width and put the bars right next to each other.

method categoryPercentage : float Js_of_ocaml.Js.prop

Percent (0-1) of the available width each category should be within the sample width.

Manually set width of each bar in pixels. If set to 'flex', it computes "optimal" sample widths that globally arrange bars side by side. If not set (default), bars are equally sized based on the smallest interval.

method maxBarThickness : float Js_of_ocaml.Js.optdef_prop

Set this to ensure that bars are not sized thicker than this.

method minBarLength : float Js_of_ocaml.Js.optdef_prop

Set this to ensure that bars have a minimum length in pixels.

OCaml

Innovation. Community. Security.