Page
Library
Module
Module type
Parameter
Class
Class type
Source
ChartjsSourcetype 'a tick_cb =
('a ->
int ->
'a Js_of_ocaml.Js.js_array Js_of_ocaml.Js.t)
Js_of_ocaml.Js.callbacktype ('a, 'b, 'c) tooltip_cb =
('a,
'b ->
'c ->
Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Indexable.t Js_of_ocaml.Js.t)
Js_of_ocaml.Js.meth_callback
Js_of_ocaml.Js.optdefThe minorTick configuration is nested under the ticks configuration in the minor key. It defines options for the minor tick marks that are generated by the axis. Omitted options are inherited from ticks configuration.
The majorTick configuration is nested under the ticks configuration in the major key. It defines options for the major tick marks that are generated by the axis. Omitted options are inherited from ticks configuration. These options are disabled by default.
The tick configuration is nested under the scale configuration in the ticks key. It defines options for the tick marks that are generated by the axis.
The following display formats are used to configure how different time units are formed into strings for the axis tick marks.
The configuration is used to change how the chart behaves. There are properties to control styling, fonts, the legend, etc.
val chart_from_canvas :
'a Chart.typ ->
data Js_of_ocaml.Js.t ->
chartOptions Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.canvasElement Js_of_ocaml.Js.t ->
'a Js_of_ocaml.Js.tval chart_from_ctx :
'a Chart.typ ->
data Js_of_ocaml.Js.t ->
chartOptions Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.canvasRenderingContext2D Js_of_ocaml.Js.t ->
'a Js_of_ocaml.Js.tval chart_from_id :
'a Chart.typ ->
data Js_of_ocaml.Js.t ->
chartOptions Js_of_ocaml.Js.t ->
string ->
'a Js_of_ocaml.Js.t