Wiki源代码5.8.2.3 Pie chart

由用户 maym 在 2025/03/10 08:13 保存的版本 14.6

隐藏最后作者
maym 14.1 1 ==== **[Usage Scenario]** ====
yinshi 1.1 2
maym 14.2 3 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:
yinshi 1.1 4
5 * (((
maym 14.2 6 **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.
yinshi 1.1 7 )))
8 * (((
maym 14.2 9 **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.
yinshi 1.1 10 )))
11 * (((
maym 14.2 12 **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.
yinshi 1.1 13 )))
14 * (((
maym 14.2 15 **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.
yinshi 1.1 16 )))
17
maym 14.3 18 ==== **[Basic Requirements ]** ====
yinshi 1.1 19
maym 14.4 20 The basic requirements for a pie chart are as follows:
yinshi 1.1 21
maym 14.4 22 (% style="width:584px" %)
23 |(% style="width:280px" %)Category Field|(% style="width:300px" %)Mumeric Field
24 |(% style="width:280px" %)Only one field can be configured|(% style="width:300px" %)Only one field can be configured
yinshi 1.1 25
maym 14.4 26 ==== Only one field can be configured ====
yinshi 1.1 27
maym 14.4 28 **Step-1 Select components and configure data sources**
yinshi 1.1 29
maym 14.4 30 Create a report, select the pie chart in the upper left corner, and then choose the data source, as shown in the figure:
yinshi 1.1 31
yinshi 11.1 32 [[image:1729843622506-386.png||height="546" width="767"]]
yinshi 1.1 33
34
maym 14.4 35 **Step-2 Select chart display fields**
yinshi 1.1 36
maym 14.4 37 Drag and drop the fields from the data source on the right onto the classification and numerical fields
yinshi 1.1 38
39 * (((
maym 14.4 40 Data source for pie chart:
yinshi 1.1 41
maym 14.4 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:将销售物品类型拖入分类字段中,将销售数量拖入数值字段中,则可以得出:【按照销售物品类型分类后的销售数量的统计饼状图】
yinshi 1.1 43
44
45 * (((
maym 14.4 46 **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.
yinshi 1.1 47 )))
48 * (((
maym 14.4 49 **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.
yinshi 6.1 50
yinshi 7.1 51 (((
maym 14.4 52 ====== 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) ======
yinshi 1.1 53 )))
yinshi 6.1 54
55 [[image:1729749814387-113.png||height="669" width="1300"]]
yinshi 1.1 56 )))
57 )))
58
maym 14.4 59 **Step-3 Style settings**
yinshi 1.1 60
maym 14.4 61 Divided into three categories: Basic Settings, Labels, and Legends, as shown in the following figure:
yinshi 1.1 62
yinshi 6.1 63 [[image:1729750188515-947.png||height="766" width="1425"]]
yinshi 1.1 64
65
yinshi 7.1 66 (((
67
yinshi 1.1 68 )))
yinshi 3.1 69
yinshi 7.1 70 (((
yinshi 3.1 71
yinshi 7.1 72
73
yinshi 1.1 74 )))
75
maym 14.4 76 ==== **[Style Configuration Description]** ====
yinshi 2.1 77
maym 14.4 78 |(% colspan="1" rowspan="1" style="width:107px" %)Classification|(% colspan="1" rowspan="1" style="width:150px" %)Configuration Items|(% colspan="1" rowspan="1" style="width:1304px" %)(((
79 Purpose
yinshi 1.1 80 )))
maym 14.4 81 |(% colspan="1" rowspan="6" style="width:107px" %)(((
82 Basic Style
yinshi 1.1 83
84
maym 14.4 85 )))|(% colspan="1" rowspan="1" style="width:150px" %)Show heading|(% colspan="1" rowspan="1" style="width:1304px" %)(((
86 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 "柱状图1" are shown in the following figure;
yinshi 1.1 87
yinshi 9.1 88 [[image:1729754356435-491.png]]
yinshi 1.1 89 )))
maym 14.5 90 |(% colspan="1" rowspan="1" style="width:150px" %)Chart title|(% colspan="1" rowspan="1" style="width:1304px" %)You can name the chart by yourself
91 |(% colspan="1" rowspan="1" style="width:150px" %)Help text|(% colspan="1" rowspan="1" style="width:1304px" %)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;
yinshi 9.1 92 [[image:1729754478509-444.png]]
maym 14.5 93 |(% colspan="1" rowspan="1" style="width:150px" %)Help text content|(% colspan="1" rowspan="1" style="width:1304px" %)Enter a description of the chart here to help client users understand the chart data;
maym 14.6 94 |(% colspan="1" rowspan="1" style="width:150px" %)Pie chart type|(% colspan="1" rowspan="1" style="width:1304px" %)(((
95 By default, "General" is selected. The second option is a circular chart, which has the following effect:
yinshi 1.1 96
yinshi 9.1 97 [[image:1729754564047-207.png||height="451" width="1137"]]
yinshi 1.1 98
99
100 )))
maym 14.6 101 |(% colspan="1" rowspan="1" style="width:150px" %)Color scheme|(% colspan="1" rowspan="1" style="width:1304px" %)Customize the color scheme of the Y-axis pillar;
yinshi 12.1 102 |(% colspan="1" rowspan="5" style="width:107px" %)(((
yinshi 1.1 103 标签
104
105
yinshi 9.1 106 )))|(% colspan="1" rowspan="1" style="width:150px" %)(((
yinshi 1.1 107 显示标签
yinshi 9.1 108 )))|(% colspan="1" rowspan="1" style="width:1304px" %)(((
yinshi 10.1 109 (((
110 控制是否显示标签的开关,如下图:
111
112 [[image:1729754768467-631.png||height="523" width="1081"]]
yinshi 1.1 113 )))
yinshi 10.1 114
115 (((
116
117 )))
118 )))
yinshi 9.1 119 |(% colspan="1" rowspan="1" style="width:150px" %)(((
yinshi 1.1 120 颜色字号
yinshi 9.1 121 )))|(% colspan="1" rowspan="1" style="width:1304px" %)(((
yinshi 10.1 122
yinshi 1.1 123 )))
yinshi 9.1 124 |(% colspan="1" rowspan="1" style="width:150px" %)(((
yinshi 1.1 125 标签位置
126
127
yinshi 9.1 128 )))|(% colspan="1" rowspan="1" style="width:1304px" %)(((
yinshi 13.1 129 支持3种模式:内部,外部,蜘蛛图
yinshi 1.1 130 )))
yinshi 9.1 131 |(% colspan="1" rowspan="1" style="width:150px" %)(((
yinshi 1.1 132 标签内容
133
134
yinshi 9.1 135 )))|(% colspan="1" rowspan="1" style="width:1304px" %)(((
yinshi 10.1 136 是标题、百分比、值的各种排列组合,默认选择【标题,百分比】如下,用户也可以改成其他内容,例如“标题,值(百分比)”,如下图:
yinshi 1.1 137
yinshi 10.1 138 [[image:1729756074259-175.png]]
yinshi 1.1 139
140
141 )))
yinshi 9.1 142 |(% colspan="1" rowspan="1" style="width:150px" %)(((
yinshi 1.1 143 百分比小数位数
yinshi 9.1 144 )))|(% colspan="1" rowspan="1" style="width:1304px" %)(((
yinshi 10.1 145 设置上述标签内容中,百分比的小数位数,例如设置成显示3位小数,如下图:
yinshi 1.1 146
yinshi 10.1 147 [[image:1729756197988-684.png]]
yinshi 1.1 148
yinshi 10.1 149
yinshi 1.1 150
151 )))
yinshi 9.1 152 |(% colspan="1" rowspan="3" style="width:107px" %)(((
yinshi 1.1 153 图例
yinshi 9.1 154 )))|(% colspan="1" rowspan="1" style="width:150px" %)(((
yinshi 1.1 155 显示图例
yinshi 9.1 156 )))|(% colspan="1" rowspan="1" style="width:1304px" %)(((
yinshi 10.1 157 默认开启, 如下图:
158
159 [[image:1729756246566-930.png]]
yinshi 1.1 160 )))
yinshi 9.1 161 |(% colspan="1" rowspan="1" style="width:150px" %)(((
yinshi 1.1 162 图例位置
yinshi 9.1 163 )))|(% colspan="1" rowspan="1" style="width:1304px" %)(((
yinshi 10.1 164 图例默认出现在画布的左上角,同时支持用户设置图例在画布中的位置
yinshi 1.1 165
166
167
168 )))
yinshi 9.1 169 |(% colspan="1" rowspan="1" style="width:150px" %)(((
yinshi 1.1 170 颜色字号
yinshi 10.1 171 )))|(% colspan="1" rowspan="1" style="width:1304px" %)支持用户根据需要自行调整图例的文字颜色和字体大小