Skip to content

Interface: PieSlice ​

Experimental

One slice: every data point with the same label (Plotly's calcdata point).

Properties ​

PropertyModifierTypeDescription
colorpublicstringExperimental CSS fill color: explicitColor, or the label's color in the colormap shared by all pies (set by crossTraceLayout; '' until then).
explicitColorreadonlystring | nullExperimental Color from marker.colors (first valid one of pts) as rgb() / rgba(), else null.
halfAnglereadonlynumberExperimental
hiddenreadonlybooleanExperimental The label is in layout.hiddenlabels: not drawn, not part of the total.
ireadonlynumberExperimental First data index (Plotly pt.i).
labelreadonlystringExperimental The label (string).
midAnglereadonlynumberExperimental
ptsreadonlyreadonly number[]Experimental Every data index merged into the slice (Plotly pt.pts), in data order.
pullreadonlynumberExperimental Fraction of the radius the slice is pulled out (pull).
rInscribedreadonlynumberExperimental Radius fraction of the largest circle inscribed in the slice (Plotly's rInscribed), used for horizontal inside text and the hover anchor.
startAnglereadonlynumberExperimental Angles (Plotly convention, see the module comment). start is where the slice begins in direction, stop where it ends; mid is the bisector; half is half the angular span, capped at π/2 (Plotly's halfangle). NaN for hidden slices and when nothing is visible.
stopAnglereadonlynumberExperimental
vreadonlynumberExperimental Sum of the values of the slice's points (their count without values).

Released under the MIT License.