package chartjs
Module ChartjsSource
type '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.optdefAxes
The 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.
Cartesian axes
Category axis
Linear axis
Logarithmic axis
Time axis
The following display formats are used to configure how different time units are formed into strings for the axis tick marks.
Chart configuration
Animation
Layout
Legend
Title
Tooltip
Interactions
Elements
Options
Chart
The configuration is used to change how the chart behaves. There are properties to control styling, fonts, the legend, etc.
Charts
Line Chart
Bar Chart
Pie Chart
Type Coercion
Creating an Axis
Creating a Chart
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