Class type Chartjs.timeOptions
method displayFormats : timeDisplayFormats Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop
Sets how different time units are displayed.
method isoWeekday : bool Js_of_ocaml.Js.t Js_of_ocaml.Js.prop
If
true
and the unit is set to 'week', then the first day of the week will be Monday. Otherwise, it will be Sunday.
method max : Time.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop
If defined, this will override the data maximum
method min : Time.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop
If defined, this will override the data minimum
method _parser : Time_parser.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop
Custom parser for dates.
method round : Time_unit.t Js_of_ocaml.Js.t Or_false.t Js_of_ocaml.Js.t Js_of_ocaml.Js.prop
If defined, dates will be rounded to the start of this unit.
method tooltipFormat : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop
The moment js format string to use for the tooltip.
method unit : Time_unit.t Js_of_ocaml.Js.t Or_false.t Js_of_ocaml.Js.t Js_of_ocaml.Js.prop
If defined, will force the unit to be a certain type.
method minUnit : Time_unit.t Js_of_ocaml.Js.t Js_of_ocaml.Js.prop
The minimum display format to be used for a time unit.