Class type Chartjs.pieDataset

inherit dataset
method data : 'a Js_of_ocaml.Js.js_array Js_of_ocaml.Js.t Js_of_ocaml.Js.prop

Styling

method backgroundColor : ('a pieOptionContext Js_of_ocaml.Js.tColor.t Js_of_ocaml.Js.t) Scriptable_indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

Arc background color.

method borderColor : ('a pieOptionContext Js_of_ocaml.Js.tColor.t Js_of_ocaml.Js.t) Scriptable_indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

Arc border color.

method borderWidth : ('a pieOptionContext Js_of_ocaml.Js.t, int) Scriptable_indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

Arc border width (in pixels).

method weight : float Js_of_ocaml.Js.optdef_prop

The relative thickness of the dataset. Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values.

Interactions

method hoverBackgroundColor : ('a pieOptionContext Js_of_ocaml.Js.tColor.t Js_of_ocaml.Js.t) Scriptable_indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

Arc background color when hovered.

method hoverBorderColor : ('a pieOptionContext Js_of_ocaml.Js.tColor.t Js_of_ocaml.Js.t) Scriptable_indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

Arc border color when hovered.

method hoverBorderWidth : ('a pieOptionContext Js_of_ocaml.Js.t, int) Scriptable_indexable.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

Arc border width when hovered (in pixels).

Border Alignment

method borderAlign : Pie_border_align.t Js_of_ocaml.Js.t Js_of_ocaml.Js.optdef_prop

The following values are supported for borderAlign: 'center' (default), 'inner'. When 'center' is set, the borders of arcs next to each other will overlap. When 'inner' is set, it is guaranteed that all the borders are not overlap.