Skip to content

Pie Chart

Pie Chart is also known as a pie graph. It uses the area of sectors, i.e., the degree of the central angle, to represent the count or percentage of variables. Pie charts are mainly used to show the internal composition of data with few groups or discrete quantitative data, and the sum of percentages of all parts must be 100%.

Pie charts are primarily used for nominal or categorical data, making it easy for users to understand the relationship between parts and the whole of a variable. By looking at the size of each sector in the circle, users can judge the proportion of each part in the whole. When a variable has multiple levels, bar charts or stacked filled bar charts can provide better visualization for the data.

Advantages: Due to its special graphical representation, pie charts display data more intuitively, making it easier to show proportion relationships.

Disadvantages: Pie charts are not suitable for displaying data with too many categories, negative values, or zero values. When the proportions of data are very close, it is difficult for the human eye to distinguish, so it is recommended to use donut charts or 3D pie charts in such cases.

Settings

Data Settings

Setting ItemDescription
Data SourceSelect the data source for the pie chart
Name FieldSelect the field returned by the data source, which is used to display the name of the pie chart sector labels, usually displayed in combination with the Tooltip Display menu.
Value FieldSelect the field returned by the data source, the value of this field is used to represent the size of the pie chart sectors

Chart Settings

Setting ItemDescription
Color Allocation TypeConfigure the color effect of sectors in the pie chart, options: Allocate colors from the palette by chartAllocate colors from the palette by data item.
When multiple charts are aggregated, you can choose to allocate by chart; for a single chart, you can choose to allocate by data item. The specific color values can be adjusted in the palette of the Style menu.
Clockwise ArrangementConfigure whether to enable clockwise data arrangement order
Rose Chart StyleConfigure whether to enable the rose chart style and effect.
Options: EmptySector central angle displays data percentageAll sector central angles are the same
Prevent Label OverlapConfigure whether to enable adaptive layout to prevent label overlap.
Inner RadiusSet the inner circle radius value of the pie chart
Outer RadiusSet the outer circle radius value of the pie chart
Center Point XSet the horizontal position of the pie chart's center point
Center Point YSet the vertical position of the pie chart's center point
Layer OrderSet the display priority level of this pie chart
LeftSet the distance from the left side of the card to the pie chart
RightSet the distance from the right side of the card to the pie chart
TopSet the distance from the top of the card to the pie chart
BottomSet the distance from the bottom of the card to the pie chart
WidthSet the width value of the pie chart, adaptive to default width if not filled
HeightSet the height value of the pie chart, adaptive to default height if not filled
Display Label LinesConfigure whether to display label guide lines
Display Above GraphicsConfigure whether labels are displayed above the corresponding graphics
Smooth Line SegmentsConfigure whether label guide lines have a smooth effect

Label Settings

Setting ItemDescription
Display LabelsTurn on or off the display of labels on the pie chart
Display Content ExpressionYou can customize the expression syntax to achieve complex content display scenarios. The display priority is lower than [Display Content]
Display ContentYou can edit the label display content, which does not support complex expression syntax except for prompt content. The display priority is higher than [Display Content Expression]
PositionYou can choose the display position of labels on the pie chart
Distance from GraphicsSet the distance of labels from the sectors in the pie chart
Label RotationSet the rotation angle of labels
Text Offset XSet the distance of labels from the X-axis
Text Offset YSet the distance of labels from the Y-axis
ColorSet the color value of label text
Background ColorSet the background color of label text, which needs to be used together with parameters such as line height, padding, width, and height in the text style to take effect
Text StyleSet the label text to italic or normal mode
Font WeightSet the label font weight, options: DefaultBoldVery BoldLight
FontSet the label font style, options: sans-serifserifmonospaceArialCourier NEW
Font SizeSet the label font size, which should not be less than 12 and not exceed 100
Horizontal AlignmentSet the horizontal alignment of label text, including four ways: Auto, Left, Center, Right
Vertical AlignmentSet the vertical alignment of label text, including four ways: Auto, Top, Center, Bottom
Line HeightSet the line height of label text, which takes effect when Handle Width Exceed selects the line break option
PaddingSet the distance length of label text within the background frame
WidthSet the maximum display width of label text, generally need to be used with Handle Width Exceed for line break and other configurations
HeightSet the display height of label text, only affects the text background height, does not affect the text itself
Handle Width ExceedThe processing method when the label exceeds the maximum width, including two types: line break and truncation with ellipsis. If set to None, the maximum width will not take effect
Stroke WidthSet the stroke width of the label background, which takes effect after setting the stroke color
Stroke ColorSet the stroke color value of the label background
Stroke RadiusSet the stroke corner radius of the label background
Shadow ColorSet the shadow color of the label background, which takes effect after setting the label background color and shadow size
Shadow SizeSet the shadow size of the label background
Shadow Horizontal OffsetSet the horizontal offset distance of the label background shadow
Shadow Vertical OffsetSet the vertical offset distance of the label background shadow

Sector Style

Setting ItemDescription
ColorSet the color effect of the sectors
Border ColorSet the color effect of the sector area border
Stroke TypeConfigure the stroke type of the sector area.
Options: Solid LineDashed LineDotted Line
Stroke WidthSet the stroke width of the sector area
Stroke RadiusSet the stroke corner radius of the sector area
Shadow ColorSet the shadow color of the sector area
ShadowSet the shadow size of the sector area
Shadow Horizontal OffsetSet the horizontal position of the sector area shadow
Shadow Vertical OffsetSet the vertical position of the sector area shadow
OpacitySet the opacity of the sectors, with a value between 0 and 1

Label Layout

Setting ItemDescription
Hide Overlapping LabelsAfter enabling, labels that overlap together will be hidden
Overlapping Offset DirectionWhen labels overlap together, you can choose the direction of label displacement, which can be horizontal or vertical displacement

Highlight Settings

Setting ItemDescription
Disable HighlightAfter disabling highlight, the labels will no longer be highlighted when the mouse moves to the label position
Behavior on HighlightSet the interactive style of highlight display
Fade RangeSet the selection range of interactive interface fade when highlighting, providing three ways: fade coordinate system, fade chart, or global fade

Events

Setting ItemDescription
Not ClickableAfter enabling, all label data in the chart cannot be clicked; after disabling, you can set the corresponding data click interaction event
Call Automation on ClickYou can implement related data label click interaction events by selecting the corresponding automation, such as opening the corresponding data form details or opening other web links after clicking
Call Automation on Double ClickThe function is the same as click call, but the interaction is triggered by double click instead of single click. Click and double click events can be set simultaneously

Other Settings

Setting ItemDescription
Color PaletteIf you need to customize the pie chart area colors, you can find the color palette in the Style menu to adjust the chart color values
Hover TooltipIf you need to display the value of each sector, you can set to display hover tooltip in the Hover Tooltip menu, and select data item graphics trigger