Module Chartjs.Indexable

type 'a t

Indexable options also accept an array in which each item corresponds to the element at the same index. Note that this method requires to provide as many items as data, so, in most cases, using a function is more appropriated if supported.

val of_single : 'a -> 'a t Js_of_ocaml.Js.t
val of_js_array : 'a Js_of_ocaml.Js.js_array Js_of_ocaml.Js.t -> 'a t Js_of_ocaml.Js.t
val of_array : 'a array -> 'a t Js_of_ocaml.Js.t
val of_list : 'a list -> 'a t Js_of_ocaml.Js.t
val cast_single : 'a t Js_of_ocaml.Js.t -> 'a Js_of_ocaml.Js.opt
val cast_js_array : 'a t Js_of_ocaml.Js.t -> 'a Js_of_ocaml.Js.js_array Js_of_ocaml.Js.t Js_of_ocaml.Js.opt