Wiki源代码5.8.2.3 Pie chart

由用户 liuqing01 在 2025/06/18 10:05 保存的版本 17.1

显示最后作者
1
2
3 ==== **[Usage Scenario]** ====
4
5 A pie chart is a commonly used type of data visualization chart that presents data as a circular shape resembling a pie chart, displaying the proportions of different data classifications in a fan-shaped manner. It is suitable for the following scenarios:
6
7 * (((
8 **Proportional display:** A pie chart is suitable for displaying the proportion or proportion relationship of different categories in the population. For example, market share, the proportion of various expenses to total expenses, etc.
9 )))
10 * (((
11 **Category Display:** A pie chart can classify and display data according to different categories, visually showing comparisons between different categories. For example, the sales proportion of different products, the sales proportion of different regions, etc.
12 )))
13 * (((
14 **Trend analysis:** By observing the size changes of each sector in the pie chart, the trend and changes of the data can be analyzed. For example, seasonal changes in sales revenue, changes in the proportion of users in different age groups, etc.
15 )))
16 * (((
17 **Highlights**: Specific data or categories can be emphasized by highlighting a sector or several important sectors in the pie chart. For example, highlighting the market share of a certain product, highlighting the sales proportion of a certain region, etc.
18 )))
19
20 ==== **[Basic Requirements ]** ====
21
22 The basic requirements for a pie chart are as follows:
23
24 |Category Field|Mumeric Field
25 |Only one field can be configured|Only one field can be configured
26
27 ==== **[Configuration steps]** ====
28
29 **Step-1 Select chart and configure data sources**
30
31 Create a report, select the pie chart in the upper left corner, and then choose the data source, as shown in the figure:
32
33 [[image:1750236977695-351.png]]
34
35 **Step-2 Select chart display fields**
36
37 Drag and drop the fields from the data source on the right onto the classification and numerical fields.
38
39 * (((
40 Data source for pie chart:
41
42 With the classification field and numerical field, it is possible to draw the correct pie chart based on the actual situation of the data. In the following figure: Drag the order time into the category field and the order amount into the numerical field, and you will get the following pie chart of order amounts classified by order date:
43
44 * (((
45 **Classification field:** This field represents the category or classification of the data, and each data point should have a corresponding category. The category field can be product name, region name, department name, etc., used to indicate the specific category to which the data belongs.
46 )))
47 * (((
48 **Numerical field:** This field represents the specific numerical value/quantity for each category. Numerical fields can be sales revenue, sales quantity, market share, etc., used to represent the proportion or percentage of each category in the overall population.
49
50 ====== If a non numeric field (such as string, date, location type) is dragged into a numeric field (dashed box), the string, date, location will be converted to the number of times the field appears based on the default aggregation method (count). ======
51
52 [[image:1750237017901-981.png]]
53 )))
54 )))
55
56 **Step-3 Style settings**
57
58 Divided into three categories: Basic Settings, Labels, and Legends, as shown in the following figure:
59
60 [[image:1741595493430-615.png]]
61
62 ==== **[Style Configuration Description]** ====
63
64 |(% colspan="1" rowspan="1" %)Classification|(% colspan="1" rowspan="1" %)Configuration Items|(% colspan="1" rowspan="1" %)(((
65 Purpose
66 )))
67 |(% colspan="1" rowspan="6" %)(((
68 Basic Style
69
70
71 )))|(% colspan="1" rowspan="1" %)Show title|(% colspan="1" rowspan="1" %)(((
72 Control whether the chart title in the upper left corner of the canvas is displayed. When closed, the chart title will not be displayed in the report, The words "Sales atatistis" are shown in the following figure
73
74 [[image:1741595558139-598.png]]
75 )))
76 |(% colspan="1" rowspan="1" %)Title name|(% colspan="1" rowspan="1" %)You can name the chart by yourself
77 |(% colspan="1" rowspan="1" %)Help text|(% colspan="1" rowspan="1" %)Control whether the help copy is displayed in the chart. If enabled, client users can see a "?" icon after the chart title and the corresponding help copy when moving the mouse over the icon
78 [[image:1741595638111-718.png]]
79 |(% colspan="1" rowspan="1" %)Help text content|(% colspan="1" rowspan="1" %)Enter a description of the chart here to help client users understand the chart data
80 |(% colspan="1" rowspan="1" %)Pie chart type|(% colspan="1" rowspan="1" %)(((
81 By default, "General" is selected. The second option is a circular chart, which has the following effect:
82
83 [[image:1741595667776-260.png]]
84
85
86 )))
87 |(% colspan="1" rowspan="1" %)Color scheme|(% colspan="1" rowspan="1" %)Customize the color scheme of the Y-axis pillar
88 |(% colspan="1" rowspan="5" %)(((
89 Label
90
91
92 )))|(% colspan="1" rowspan="1" %)(((
93 Display Label
94 )))|(% colspan="1" rowspan="1" %)(((
95 Control whether to display the labels of the pie chart, as shown in the following figure:
96
97 [[image:1741595724904-816.png]]
98
99
100 )))
101 |(% colspan="1" rowspan="1" %)Color font size|(% colspan="1" rowspan="1" %)Support user-defined color and font size for label
102 |(% colspan="1" rowspan="1" %)(((
103 Label position
104
105
106 )))|(% colspan="1" rowspan="1" %)Provide 3 modes: internal, external, spider diagram
107 |(% colspan="1" rowspan="1" %)(((
108 Label content
109
110
111 )))|(% colspan="1" rowspan="1" %)(((
112 It is a combination of titles, percentages, and values arranged in various ways. The default combination is [title, percentage], but users can also change it to other content, such as the "title, value (percentage)" combination, as shown in the following figure:
113
114 [[image:1741595756674-393.png]]
115
116
117 )))
118 |(% colspan="1" rowspan="1" %)% decimals|(% colspan="1" rowspan="1" %)(((
119 Set the decimal places for percentages in the above labels, for example, to display 3 decimal places, as shown in the following figure:
120
121 [[image:1741595788641-743.png]]
122
123
124 )))
125 |(% colspan="1" rowspan="3" %)(((
126 Legend
127 )))|(% colspan="1" rowspan="1" %)(((
128 Show legend
129 )))|(% colspan="1" rowspan="1" %)(((
130 By default, it is turned on, and when turned off, the legend will not be displayed
131
132 [[image:1741595825268-360.png]]
133 )))
134 |(% colspan="1" rowspan="1" %)Legend position|(% colspan="1" rowspan="1" %)(((
135 The legend defaults to the top left corner of the chart and supports displaying the legend in other positions of the chart, such as the top center, bottom left corner, top right corner, bottom center, or bottom right corner
136 )))
137 |(% colspan="1" rowspan="1" %)Color and font size|(% colspan="1" rowspan="1" %)Adjust the text color and font size of the legend