package chartjs

  1. Overview
  2. Docs
inherit dataset

General

The ID of the x axis to plot this dataset on.

The ID of the y axis to plot this dataset on.

Point styling

The width of the point border in pixels.

The pixel size of the non-displayed point that reacts to mouse events.

The radius of the point shape. If set to 0, the point is not rendered.

The rotation of the point in degrees.

Style of the point.

Line styling

The line fill color.

Cap style of the line.

The line color.

Length and spacing of dashes.

Offset for line dashes.

Line joint style.

method borderWidth : int Js_of_ocaml.Js.optdef_prop

The line width (in pixels).

How to fill the area under the line.

method lineTension : float Js_of_ocaml.Js.optdef_prop

Bezier curve tension of the line. Set to 0 to draw straightlines. This option is ignored if monotone cubic interpolation is used.

If false, the line is not drawn for this dataset.

If true, lines will be drawn between points with no or null data. If false, points with NaN data will create a break in the line.

Interactions

Point background color when hovered.

Border width of point when hovered.

The radius of the point when hovered.

Cubic Interpolation Mode

The default and monotone interpolation modes are supported. The default algorithm uses a custom weighted cubic interpolation, which produces pleasant curves for all types of datasets. The 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. If left untouched (undefined), the global options.elements.line.cubicInterpolationMode property is used.

Stepped Line

The following values are supported for steppedLine. false: No Step Interpolation (default) true: Step-before Interpolation (eq. 'before') 'before': Step-before Interpolation 'after': Step-after Interpolation 'middle': Step-middle Interpolation If the steppedLine value is set to anything other than false, lineTension will be ignored.

OCaml

Innovation. Community. Security.