Charts

Pie Chart

Build pie and donut charts for part-to-whole comparisons

Pie charts display data as proportional slices of a circle.

Simple Pie Chart

Donut Chart

Set innerRadius to create a donut.

Pie Chart with Labels

Set :label="true" to show labels outside each slice.

Half Pie Chart

Use startAngle and endAngle to create a semicircle.

Pie props

PropTypeDefaultDescription
dataKeystring | number | FunctionrequiredKey from data
dataArrayPie data array
nameKeystring'name'Key for slice names
cxnumber | string'50%'Center X
cynumber | string'50%'Center Y
innerRadiusnumber0Inner radius (0 = pie, >0 = donut)
outerRadiusnumber | string'80%'Outer radius
startAnglenumber0Start angle in degrees
endAnglenumber360End angle in degrees
paddingAnglenumber0Gap between slices
activeIndexnumber-1Active slice index
labelbooleanfalseShow labels
isAnimationActivebooleantrueEnable animation
Copyright © 2026