Class type Chartjs.lineDataset
inherit dataset
General
Point styling
method pointBackgroundColor : ('a lineOptionContext Js_of_ocaml.Js.t, Color.t Js_of_ocaml.Js.t) Scriptable_indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propThe fill color for points.
method pointBorderColor : ('a lineOptionContext Js_of_ocaml.Js.t, Color.t Js_of_ocaml.Js.t) Scriptable_indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propThe border color for points.
method pointBorderWidth : ('a lineOptionContext Js_of_ocaml.Js.t, int) Scriptable_indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propThe width of the point border in pixels.
method pointHitRadius : ('a lineOptionContext Js_of_ocaml.Js.t, int) Scriptable_indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propThe pixel size of the non-displayed point that reacts to mouse events.
method pointRadius : ('a lineOptionContext Js_of_ocaml.Js.t, int) Scriptable_indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propThe radius of the point shape. If set to 0, the point is not rendered.
method pointRotation : ('a lineOptionContext Js_of_ocaml.Js.t, int) Scriptable_indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propThe rotation of the point in degrees.
method pointStyle : Point_style.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propStyle of the point.
Line styling
method backgroundColor : Color.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propThe line fill color.
method borderCapStyle : Line_cap.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propCap style of the line.
method borderColor : Color.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propThe line color.
method borderDash : line_dash Js_of_ocaml.Js.optdef_propLength and spacing of dashes.
method borderDashOffset : line_dash_offset Js_of_ocaml.Js.optdef_propOffset for line dashes.
method borderJoinStyle : Line_join.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propLine joint style.
method fill : Line_fill.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propHow to fill the area under the line.
method lineTension : float Js_of_ocaml.Js.optdef_propBezier curve tension of the line. Set to 0 to draw straightlines. This option is ignored if monotone cubic interpolation is used.
Interactions
method pointHoverBackgroundColor : ('a lineOptionContext Js_of_ocaml.Js.t, Color.t Js_of_ocaml.Js.t) Scriptable_indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propPoint background color when hovered.
method pointHoverBorderColor : ('a lineOptionContext Js_of_ocaml.Js.t, Color.t Js_of_ocaml.Js.t) Scriptable_indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propPoint border color when hovered.
method pointHoverBorderWidth : ('a lineOptionContext Js_of_ocaml.Js.t, int) Scriptable_indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propBorder width of point when hovered.
method pointHoverRadius : ('a lineOptionContext Js_of_ocaml.Js.t, int) Scriptable_indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propThe radius of the point when hovered.
Cubic Interpolation Mode
method cubicInterpolationMode : Interpolation_mode.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propThe
defaultandmonotoneinterpolation modes are supported. Thedefaultalgorithm uses a custom weighted cubic interpolation, which produces pleasant curves for all types of datasets. Themonotonealgorithm is more suited toy = 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 globaloptions.elements.line.cubicInterpolationModeproperty is used.
Stepped Line
method steppedLine : Stepped_line.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_propThe 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 thesteppedLinevalue is set to anything other thanfalse,lineTensionwill be ignored.