Node / Charts · guide
Pie & donut
Current Apexify.js 6.0.0 documentation for Pie & donut.
SOURCEtypescript
typescript
PieSlice (required fields label, value)
| Field | Purpose |
|---|---|
color, gradient | Fill (gradient wins via createGradientFill). |
opacity | Slice fill multiplier. |
showValue, showLabel | Per-slice overrides (defaults bubble from options.labels). |
valueLabel | Custom text instead of raw value. |
shadow, stroke | Per-slice effects. |
PieChartOptions highlights
| Block | Keys |
|---|---|
type | pie (default) or donut. |
donutInnerRadius | Inner hole radius when type: 'donut'. |
dimensions | width/height/padding. |
appearance | Shared. |
labels.title | Chart title. |
labels.sliceLabels, valueLabels | fontSize, color, gradient, textStyle. |
labels.showValues, showLabels, valueFormat(value, percentage) | Global toggles / formatter. |
legends.standard | show, position, box styling, wrapText, maxWidth, … |
legends.connected | Pie-specific leader-line legend — lineColor, lineGradient, lineWidth. |
slices | Global opacity, shadow, stroke defaults for all arcs. |
Example — simple pie
SOURCEtypescript
typescript
Example — donut + gradients + appearance
SOURCEtypescript
typescript