logo

Ant Design Charts

  • Manual
  • Components
  • Examples
  • Options
  • Productsantv logo arrow
  • 2.6.5
  • Component Overview
  • Statistical Charts
    • Chart overview
    • Line
    • Column
    • Bar Chart
    • Area
    • Pie Chart
    • DualAxes
    • Scatter
    • WordCloud
    • Funnel Chart
    • Heatmap
    • Histogram
    • Liquid
    • BidirectionalBar
    • Box
    • Bullet
    • CirclePacking
    • Gauge
    • Radar
    • Rose
    • Sankey
    • Stock
    • Sunburst
    • Treemap
    • Venn
    • Tiny
    • Violin
    • Waterfall
    • RadialBar
  • Relation Graph Components
    • Overview
    • MindMap
    • Fishbone
    • IndentedTree
    • Dendrogram
    • OrganizationChart
    • FlowGraph
    • FlowDirectionGraph
    • NetworkGraph
    • FAQ

Pie Chart

Previous
Area
Next
DualAxes

Resources

Ant Design
Galacea Effects
Umi-React Application Framework
Dumi-Component doc generator
ahooks-React Hooks Library

Community

Ant Financial Experience Tech
seeconfSEE Conf-Experience Tech Conference

Help

GitHub
StackOverflow

more productsMore Productions

Ant DesignAnt Design-Enterprise UI design language
yuqueYuque-Knowledge creation and Sharing tool
EggEgg-Enterprise-class Node development framework
kitchenKitchen-Sketch Tool set
GalaceanGalacean-互动图形解决方案
xtechLiven Experience technology
© Copyright 2026 Ant Group Co., Ltd..备案号:京ICP备15032932号-38

Loading...

Introduction

A pie chart is a circular statistical chart that divides a circle into several sector areas to show the proportional relationship of each part of data in the whole. The central angle and area of each sector are proportional to the proportion of that part of data, intuitively presenting the relationship between "whole and parts".

Code Examples

For more examples, see Pie Chart

Basic Usage

Adjust Label Position

Custom Label

Implemented through label.render.

Adjust Inner Radius

Set Drawing Area

Image Fill

Configuration

Common properties reference: Common Configuration

Overview

ConfigurationDescriptionTypeDefault
dataDataArray[]
angleFieldAngle mapping fieldstring-
colorFieldColor mapping channel, see colorstring (optional)-
radiusRadiusnumber[0~1]-
innerRadiusInner radiusnumber[0~1]0
startAngleStart anglenumber-
endAngleEnd anglenumber-
titleUsed to specify chart title content, see Titleobject (optional)-
legendAuxiliary element of the chart, uses color, size, shape to distinguish different data types, used for filtering data in the chart, see Legendobject (optional)-
labelData labels are one of the means to add annotations to the chart, see Labelobject (optional)-
tooltipUsed to dynamically display detailed information of data points, see Tooltipobject (optional)-
styleVisual style, configuration details see Drawing Propertiesobject (optional)-
themeUsed to control the overall appearance of the chart, including visual properties such as colors, fonts, margins, see Themestring | object (optional)light
onReadyChart load callback, used for subsequent event bindingFunction (optional)-
scaleMaps abstract data to visual data, see Scaleobject (optional)-
animateAnimation as an important part of visualization can significantly improve the expressiveness of data visualization, see Animationobject (optional)-
interactionProvides the ability to explore data on demand, see Interactionobject (optional)-
stateImplements interaction feedback, highlighting, selection and other effects, see State, chart styles under different interactionsobject (optional)-
annotationsView is like a drawing board, Column component draws a pie chart on it by default, we can overlay more layers on it through annotations, see AnnotationsArray (optional)-

Events

See Options - Events.

Methods

See Chart Overview - Chart Methods.

FAQ

  1. How to avoid label overlapping
line-1.jpg

Adjust through label.transform, for more details see LabelTransform

label: {
text: (d) => `${d.type}\n ${d.value}`,
position: 'spider',
transform: [
{
type: 'overlapDodgeY'
}
]
},