Class type Chartjs.pieDataset
inherit dataset
Styling
method backgroundColor : ('a pieOptionContext 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_prop
Arc background color.
method borderColor : ('a pieOptionContext 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_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).
Interactions
method hoverBackgroundColor : ('a pieOptionContext 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_prop
Arc background color when hovered.
method hoverBorderColor : ('a pieOptionContext 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_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.