klyn.gui.windows.charts.KlynPlotWidget.pie
method
public pie(values as NDArray<Double>, labels as IList<String> = null, explode as IList<Double> = null, autopct as String = "", shadow as Boolean = false, startAngle as Double = 0.0, counterClockwise as Boolean = true, colors as IList<String> = null) as Void
Description

Displays a pie from a copied one-dimensional array, with the list overload's options. Reads the array directly without an intermediate toList().

Parameters
ParameterDescription
valuesNon-empty one-dimensional finite, non-negative weights.
labelsOptional labels, one per weight.
explodeOptional finite, non-negative offsets in radius units.
autopctFixed-point percentage format, such as "%.2f %%".
shadowWhether to draw displaced sector silhouettes.
startAngleInitial angle in degrees, counterclockwise from the right.
counterClockwiseWhether sectors advance counterclockwise.
colorsOptional non-empty color cycle.
Throws
  • ValueException for invalid dimensions or the list overload's errors. Example: chart.pie(NDArray<Double>([1.0, 3.0]), labels=["A", "B"], autopct="%.1f%%")