Skip to main content

Pie

The pie component displays the proportion of different classification data in a pie shape or ring shape.This article introduces the detailed configuration method of the pie component.

pie chart

Private Properties

Parameters
Description
Default value
Data SourceConfigurable data sources
Dimension
Measures
Color tagConfigurable
HollowOptional values: Yes, NoNo

Color

Pie color configuration

Parameters
Description
Default value
Color ListThe color palette of the pie chart can be added, modified, and deleted.Default:#63b2ee, #76da91, #f8cb7f

Title

Not displayed by default

Parameters
Description
Default value
TextPie Chart
SizeOptional value: 12~7216
Color#333333
ThicknessOptional values: Standard, BoldStandard
PostionOptional values: Right, Center, LeftLeft
BG Color#ffffff

Legend

Parameters
Description
Default value
SizeOptional value: 12~7212
Color#333333
ThicknessOptional values: Standard, BoldStandard
PositionOptional values: Up-Left, Up-Center, Up-Right, Left-Up, Left-Middle, Left-Bottom, Right-Top, Right-Middle, Right-Bottom, Bottom-Left, Bottom-Center, Bottom-RightUp-Left

Tag

Not displayed by default, pie displays details

Parameters
Description
Default value
PositionOptional values: Outside, InnerOutside
ShowOptional values: Tag + Value, Tag, ValueTag + Value
Label SizeOptional value: 12~7212
Tag Color#333333
ThicknessOptional values: Standard, BoldStandard
Tag SuffixFixed text displayed after the value
Data SizeOptional value: 12~7212
Value Color#333333
ThicknessOptional values: Standard, BoldStandard
Value SuffixFixed text displayed after the value

BG Color

Not displayed by default

Parameters
Description
Default value
Color#ffffff

Border

Not displayed by default

Parameters
Description
Default value
Thickness1
Color#999999
Line StyleOptional values: solid line, dashed line, dotted linestraight line

Node

Parameters
Description
Default value
WidthOverall width300
HeightOverall height200
XHorizontal coordinate
YVertical coordinate

Application Examples

The pie chart component is used to count and display the usage percentage of each model of equipment in a factory.

list_01


Step 1: Add components

Above the component list on the left side of the canvas, enter pie chart, find the component, and then drag the component to the middle canvas. list_01

Step 2: Configure the data source

In the Web editor, select the component and click Configure Data Source in the style on the right.

Note:The current demonstration uses the system data source by default. In actual applications, it can be replaced with a custom data source according to user needs.

list_01

Step 3: Configure the style

Configure the results returned by the interface as the dimension and measurement data of the chart.

list_01

Finally, adjust the position of the legend to be centered list_01