package chartjs

  1. Overview
  2. Docs

Module Chartjs.Interpolation_modeSource

Sourcetype t

Default algorithm uses a custom weighted cubic interpolation, which produces pleasant curves for all types of datasets.

Sourceval monotone : t Js_of_ocaml.Js.t

Monotone algorithm is more suited to y = f(x) datasets : it preserves monotonicity (or piecewise monotonicity) of the dataset being interpolated, and ensures local extremums (if any) stay at input data points.

Sourceval of_string : string -> t Js_of_ocaml.Js.t