package chartjs

  1. Overview
  2. Docs
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_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
OCaml

Innovation. Community. Security.