Wiki源代码5.8.2.2 Line Chart

由用户 maym 在 2025/02/28 08:49 保存的版本 17.4

隐藏最后作者
maym 16.4 1 ==== **[Usage Scenario]** ====
yinshi 1.1 2
maym 16.4 3 A line chart is a commonly used type of chart to display changes over time. It connects data points with lines to show the trend of variables, and is suitable for the following scenarios:
yinshi 1.1 4
yinshi 11.1 5 * (((
maym 16.4 6 **Time trend analysis:**  Line charts are suitable for displaying time series data, such as daily, monthly, or quarterly sales, user visits, or inventory changes, to help users identify long-term trends.
yinshi 11.1 7 )))
8 * (((
maym 16.5 9 **Seasonal changes: ** By observing the fluctuations of the line, it is possible to analyze the periodic changes in the data. For example, seasonal fluctuations in sales revenue, changes in user activity during different time periods, etc.
yinshi 11.1 10 )))
11 * (((
maym 16.5 12 **Comparison trend: ** Multiple lines can be used to compare the changes in multiple variables. For example, comparing sales trends of different products, or comparing user growth trends in different markets.
yinshi 11.1 13 )))
14 * (((
maym 16.5 15 **Abnormal discovery: ** The prominent peaks or valleys in a line chart help identify abnormal situations in the data, such as an abnormal increase in sales or a sudden decrease in user churn in a certain month.
yinshi 11.1 16 )))
yinshi 1.1 17
yinshi 13.1 18 ==== ====
yinshi 2.1 19
maym 16.6 20 ==== **[Function Introduction]** ====
yinshi 11.1 21
maym 16.6 22 A line chart is used to display the changes in data over a continuous time interval or span, and its characteristic is to reflect the trend of things changing over time or ordered categories.
yinshi 1.1 23
maym 16.8 24 [[image:1740626962720-557.png]]
yinshi 3.1 25
maym 16.9 26 The composition of a line chart includes:
yinshi 1.1 27
maym 16.12 28 1. **Horizontal axis (X-axis): **The horizontal axis in a line graph is the horizontal axis, usually used to display continuous variables such as data classification or time.
maym 17.2 29 1. **Vertical axis (Y-axis):** The vertical axis in a line chart is the axis in the vertical direction, usually used to display numerical values or quantities of data.
maym 16.12 30 1. **Point: ** Each point represents the data value at a specific position on the horizontal and vertical axes. In a line chart, the line connecting all points can show the trend and change of the data.
31 1. **Line:** The lines in a line chart are straight lines formed by connecting data points, representing the trend of data changes. The trend of the lines can intuitively show the growth, decrease, or fluctuation of the data.
yinshi 1.1 32
maym 16.11 33 (((
34
yinshi 1.1 35
36
maym 16.11 37
yinshi 1.1 38 )))
39
maym 16.13 40 ==== 【Basic Attributes】 ====
yinshi 1.1 41
42
maym 16.16 43 |(% style="width:294px" %)**Horizontal axis**|(% style="width:236px" %)**Longitudinal axis**|(% style="width:472px" %)**Search Fields**|(% style="width:275px" %)**Refernce Line**|(% style="width:245px" %)**Filter conditions**
44 |(% style="width:294px" %)Multiple fields can be configured, but up to 30 fields are allowed|(% style="width:236px" %)Only one field can be configured|(% style="width:472px" %)After configuration, the client can draw a line chart by searching for data that meets the criteria based on different search field values|(% style="width:275px" %)Multiple fields can be configured, but up to 30 fields are allowed|(% style="width:245px" %)Configure the condition values for filtering data sources
yinshi 1.1 45
yinshi 3.1 46 ====== ======
yinshi 1.1 47
maym 16.17 48 ==== **[Configuration steps]** ====
yinshi 3.1 49
maym 16.17 50 **Step-1 Select Bar Chart**
yinshi 1.1 51
maym 16.18 52 [[image:1740640778297-295.png]]
yinshi 1.1 53
54
maym 16.20 55 **Step-2 Select chart display fields**
yinshi 1.1 56
maym 16.20 57 Drag and drop the fields from the data source list on the right onto the horizontal axis, vertical axis, search field, and reference line
yinshi 1.1 58
maym 16.21 59 [[image:1740641005459-993.png]]
yinshi 1.1 60
61
maym 16.22 62 **Step-3 Style settings**
yinshi 1.1 63
maym 16.23 64 Divided into three categories: [Basic Style], [Coordinate Axis], [Legend], as shown in the following figure:
yinshi 1.1 65
maym 16.23 66 [[image:1740641136822-176.png]]
yinshi 1.1 67
68
69
maym 16.25 70 ==== **[Style Configuration Description]** ====
yinshi 6.1 71
maym 16.26 72 |(% colspan="1" rowspan="1" style="width:76.9844px" %)Classification|(% colspan="1" rowspan="1" style="width:94px" %)Configuration Items|(% colspan="1" rowspan="1" style="width:1272px" %)Purpose
maym 17.4 73 |(% colspan="1" rowspan="11" style="width:76.9844px" %)(((
maym 16.26 74 Basic Style
yinshi 6.1 75
76
maym 16.27 77 )))|(% colspan="1" rowspan="1" style="width:94px" %)Show heading |(% colspan="1" rowspan="1" style="width:1272px" %)(((
yinshi 8.1 78 (((
maym 16.26 79 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 7.1 80
maym 16.27 81 [[image:1740645772547-595.png]]
yinshi 6.1 82 )))
yinshi 8.1 83
84 (((
85
86 )))
87 )))
maym 16.27 88 |(% colspan="1" rowspan="1" style="width:94px" %)Chart title|(% colspan="1" rowspan="1" style="width:1272px" %)You can name the chart yourself
yinshi 9.1 89 |(% colspan="1" rowspan="1" style="width:94px" %)(((
maym 16.27 90 Help text
yinshi 9.1 91 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
maym 16.27 92 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;
93
94 [[image:1740645921975-640.png]]
95 )))
96 |(% colspan="1" rowspan="1" style="width:94px" %)Help text content|(% colspan="1" rowspan="1" style="width:1272px" %)Enter a description of the chart here to help client users understand the chart data;
97 |(% colspan="1" rowspan="1" style="width:94px" %)Line chart type|(% colspan="1" rowspan="1" style="width:1272px" %)(((
yinshi 7.1 98 (((
maym 17.1 99 Provide 2 types: line and curve[[image:1740646556619-157.png]]
yinshi 6.1 100 )))
yinshi 7.1 101
102 (((
yinshi 6.1 103
104 )))
105 )))
maym 17.1 106 |(% colspan="1" rowspan="1" style="width:94px" %)color scheme|(% colspan="1" rowspan="1" style="width:1272px" %)Customize the color scheme of the Y-axis pillar;
yinshi 9.1 107 |(% colspan="1" rowspan="1" style="width:94px" %)(((
maym 17.1 108 Display thumbnail axis
maym 17.2 109 )))|(% colspan="1" rowspan="1" style="width:1272px" %)Set a thumbnail axis for the horizontal axis, that is, to view the data of a certain interval on the horizontal axis;[[image:1740732178186-806.png]]
maym 17.3 110 |(% colspan="1" rowspan="1" style="width:94px" %)Display point|(% colspan="1" rowspan="1" style="width:1272px" %)(((
yinshi 9.1 111 (((
maym 17.3 112 By default, when turned off, each trace point of the line will not be displayed on the chart
yinshi 6.1 113
114
maym 17.3 115 [[image:1740732311368-570.png]]
yinshi 9.1 116 )))
117
118 (((
yinshi 6.1 119
120 )))
yinshi 9.1 121 )))
122 |(% colspan="1" rowspan="1" style="width:94px" %)(((
maym 17.4 123 Point size
yinshi 9.1 124 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
maym 17.4 125 Control the size of the midpoint in the line chart
yinshi 7.1 126
maym 17.4 127
yinshi 6.1 128 )))
yinshi 9.1 129 |(% colspan="1" rowspan="1" style="width:94px" %)(((
maym 17.4 130 Display Line
yinshi 9.1 131 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
maym 17.4 132 By default, when turned off, the line segments of the line chart disappear and only points are displayed (similar to a scatter plot)
yinshi 6.1 133
maym 17.4 134 [[image:1740732470025-322.png]]
yinshi 6.1 135 )))
yinshi 9.1 136 |(% colspan="1" rowspan="1" style="width:94px" %)(((
maym 17.4 137 Line thickness
yinshi 6.1 138
139
maym 17.4 140 )))|(% colspan="1" rowspan="1" style="width:1272px" %)Support users to control the thickness of line segments in polylines
yinshi 9.1 141 |(% colspan="1" rowspan="5" style="width:76.9844px" %)(((
yinshi 7.1 142 横轴
yinshi 6.1 143
144
yinshi 9.1 145 )))|(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 146 显示轴标题
147
148
yinshi 9.1 149 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
150 开启后,画布中横轴下方,将显示用户配置的横轴的数据源的标题
151
maym 16.1 152 [[image:1737529012159-610.png]]
yinshi 6.1 153 )))
yinshi 9.1 154 |(% colspan="1" rowspan="1" style="width:94px" %)(((
155 轴标题名称
yinshi 6.1 156
157
yinshi 9.1 158 )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户自定义想要的轴标题名称文案
159 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 160 颜色字号
yinshi 9.1 161 )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户自定义轴标题的颜色和字号
162 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 163 轴标签
yinshi 9.1 164 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
165 控制是否显示轴标签的开关,如下图:
166
167 [[image:1729737350555-287.png||height="438" width="900"]]
yinshi 6.1 168 )))
yinshi 9.1 169 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 170 (轴标签)自动旋转
yinshi 9.1 171 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
172 轴标签会斜45°显示,如下图
173
174 [[image:1729737429518-371.png]]
yinshi 6.1 175 )))
yinshi 10.1 176 |(% colspan="1" rowspan="4" style="width:76.9844px" %)(((
yinshi 7.1 177 纵轴
yinshi 6.1 178
179
yinshi 9.1 180 )))|(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 181 显示轴标题
182
183
yinshi 9.1 184 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
yinshi 10.1 185 开启后,画布中纵轴左侧,将显示用户配置的纵轴的(第一个数据源)的标题
yinshi 6.1 186
yinshi 10.1 187 (图中:“Y轴标题”是轴标题, “桌子、椅子、窗帘”是图例)
188
189 [[image:1729737694678-922.png]]
yinshi 6.1 190 )))
yinshi 9.1 191 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 192 标题内容
yinshi 10.1 193 )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户自定义想要的轴标题名称文案
yinshi 9.1 194 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 195 轴标签
yinshi 9.1 196 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
yinshi 10.1 197 控制Y轴轴标签是否显示的开关
198
199 [[image:1729737826799-987.png||height="434" width="369"]]
yinshi 6.1 200 )))
yinshi 9.1 201 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 202 刻度数
yinshi 10.1 203 )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户配置的Y轴的刻度数(注意:这里的刻度数是一个预估值,报表引擎在渲染时可能会根据实际情况改变最终呈现的刻度数)
maym 16.26 204 |(% colspan="1" rowspan="3" style="width:76.9844px" %)(((
yinshi 6.1 205 图例
206
207
yinshi 9.1 208 )))|(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 209 显示图例
yinshi 9.1 210 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
yinshi 10.1 211 默认开启, 关闭后则不显示图例
212
213 [[image:1729737941885-204.png||height="506" width="842"]]
yinshi 6.1 214 )))
maym 16.26 215 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 216 图例位置
yinshi 10.1 217 )))|(% colspan="1" rowspan="1" style="width:1272px" %)图例默认出现在画布的左上角,同时支持用户设置图例在画布中的位置
maym 16.26 218 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 219 颜色字号
yinshi 14.1 220 )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户根据需要自行调整图例的文字颜色和字体大小