Wiki源代码5.8.2.2 Line Chart

由用户 maym 在 2025/02/27 07:22 保存的版本 16.20

隐藏最后作者
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.
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.
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.20 59 [[image:1740640945562-266.png]]
yinshi 1.1 60
61
62 Step-3 样式设置
63
64 分为三小类:【基础】、【坐标轴】,【图例】,如下图
65
yinshi 5.1 66 [[image:1729663961688-819.png]]
yinshi 1.1 67
68
69
yinshi 12.1 70 ==== **【样式配置说明】** ====
yinshi 6.1 71
yinshi 8.1 72 |(% colspan="1" rowspan="1" style="width:52px" %)(((
yinshi 1.1 73
yinshi 8.1 74 )))|(% colspan="1" rowspan="1" style="width:76.9844px" %)(((
yinshi 6.1 75 样式设置分类
yinshi 9.1 76 )))|(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 77 配置项
yinshi 9.1 78 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
yinshi 6.1 79 用途
80 )))
yinshi 10.1 81 |(% colspan="1" rowspan="21" style="width:52px" %)(((
yinshi 6.1 82 **折线图**
83
84
yinshi 8.1 85 )))|(% colspan="1" rowspan="12" style="width:76.9844px" %)(((
yinshi 6.1 86 基础
87
88
yinshi 9.1 89 )))|(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 90 显示标题
yinshi 9.1 91 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
yinshi 8.1 92 (((
yinshi 7.1 93 控制画布左上角的标题是否显示的开关
94
yinshi 9.1 95 [[image:1729664204675-778.png||height="214" width="731"]]
yinshi 6.1 96 )))
yinshi 8.1 97
98 (((
99
100 )))
101 )))
yinshi 9.1 102 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 103 标题名称
yinshi 9.1 104 )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户自定义报表标题
105 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 106 帮助文字
yinshi 9.1 107 )))|(% colspan="1" rowspan="1" style="width:1272px" %)开启后,标题右侧出现小问号,鼠标悬浮时,出现帮助文字具体内容
yinshi 7.1 108 [[image:1729664436892-701.png]]
yinshi 9.1 109 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 110 帮助文字内容
yinshi 9.1 111 )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户自定义帮助文字的文案,例如“这是本月销售订单总额的统计”
112 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 113 折线图类型
yinshi 9.1 114 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
yinshi 7.1 115 (((
116 支持2种类型:折线、曲线
yinshi 9.1 117 [[image:1729664469432-978.png||height="398" width="875"]]
yinshi 6.1 118 )))
yinshi 7.1 119
120 (((
yinshi 6.1 121
122 )))
123 )))
yinshi 9.1 124 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 7.1 125 配色方案
yinshi 9.1 126 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
yinshi 7.1 127 支持用户自定义(多Y轴时)整体的配色方案
yinshi 6.1 128 )))
yinshi 9.1 129 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 7.1 130 显示缩略轴
yinshi 9.1 131 )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户设置针对横轴的缩略轴,即:查看横轴上某一区间的数据
yinshi 7.1 132 [[image:1729664570038-223.png||height="477" width="822"]]
yinshi 9.1 133 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 134 展示点
yinshi 9.1 135 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
136 (((
yinshi 6.1 137 默认打开,关闭后画布上不显示折线的每个描点
138
139
yinshi 9.1 140 [[image:1729736532720-382.png||height="441" width="866"]]
141 )))
142
143 (((
yinshi 6.1 144
145 )))
yinshi 9.1 146 )))
147 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 148 点大小
yinshi 9.1 149 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
yinshi 7.1 150 控制折线图中点大小
151
yinshi 9.1 152 [[image:1729664677195-525.png||height="515" width="857"]]
yinshi 6.1 153 )))
yinshi 9.1 154 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 155 展示线
yinshi 9.1 156 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
yinshi 7.1 157 默认打开,关闭后折线的线段消失,只显示点(类似散点图)
yinshi 6.1 158
yinshi 9.1 159 [[image:1729664725301-778.png||height="403" width="937"]]
yinshi 6.1 160
161
162 )))
yinshi 9.1 163 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 164 线粗细
165
166
yinshi 9.1 167 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
yinshi 7.1 168 支持用户控制折线的线段粗细
yinshi 6.1 169 )))
yinshi 9.1 170 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 171 填充
172
173
yinshi 9.1 174 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
yinshi 6.1 175 默认关闭, 打开后每个点向下填充半透明的颜色到X轴,效果如下:
176
yinshi 7.1 177 [[image:1729664811246-731.png||height="276" width="683"]]
yinshi 6.1 178
179
180 )))
yinshi 9.1 181 |(% colspan="1" rowspan="5" style="width:76.9844px" %)(((
yinshi 7.1 182 横轴
yinshi 6.1 183
184
yinshi 9.1 185 )))|(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 186 显示轴标题
187
188
yinshi 9.1 189 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
190 开启后,画布中横轴下方,将显示用户配置的横轴的数据源的标题
191
maym 16.1 192 [[image:1737529012159-610.png]]
yinshi 6.1 193 )))
yinshi 9.1 194 |(% colspan="1" rowspan="1" style="width:94px" %)(((
195 轴标题名称
yinshi 6.1 196
197
yinshi 9.1 198 )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户自定义想要的轴标题名称文案
199 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 200 颜色字号
yinshi 9.1 201 )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户自定义轴标题的颜色和字号
202 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 203 轴标签
yinshi 9.1 204 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
205 控制是否显示轴标签的开关,如下图:
206
207 [[image:1729737350555-287.png||height="438" width="900"]]
yinshi 6.1 208 )))
yinshi 9.1 209 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 210 (轴标签)自动旋转
yinshi 9.1 211 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
212 轴标签会斜45°显示,如下图
213
214 [[image:1729737429518-371.png]]
yinshi 6.1 215 )))
yinshi 10.1 216 |(% colspan="1" rowspan="4" style="width:76.9844px" %)(((
yinshi 7.1 217 纵轴
yinshi 6.1 218
219
yinshi 9.1 220 )))|(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 221 显示轴标题
222
223
yinshi 9.1 224 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
yinshi 10.1 225 开启后,画布中纵轴左侧,将显示用户配置的纵轴的(第一个数据源)的标题
yinshi 6.1 226
yinshi 10.1 227 (图中:“Y轴标题”是轴标题, “桌子、椅子、窗帘”是图例)
228
229 [[image:1729737694678-922.png]]
yinshi 6.1 230 )))
yinshi 9.1 231 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 232 标题内容
yinshi 10.1 233 )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户自定义想要的轴标题名称文案
yinshi 9.1 234 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 235 轴标签
yinshi 9.1 236 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
yinshi 10.1 237 控制Y轴轴标签是否显示的开关
238
239 [[image:1729737826799-987.png||height="434" width="369"]]
yinshi 6.1 240 )))
yinshi 9.1 241 |(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 242 刻度数
yinshi 10.1 243 )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户配置的Y轴的刻度数(注意:这里的刻度数是一个预估值,报表引擎在渲染时可能会根据实际情况改变最终呈现的刻度数)
yinshi 8.1 244 |(% colspan="1" rowspan="1" style="width:52px" %)(((
yinshi 6.1 245
yinshi 8.1 246 )))|(% colspan="1" rowspan="3" style="width:76.9844px" %)(((
yinshi 6.1 247 图例
248
249
yinshi 9.1 250 )))|(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 251 显示图例
yinshi 9.1 252 )))|(% colspan="1" rowspan="1" style="width:1272px" %)(((
yinshi 10.1 253 默认开启, 关闭后则不显示图例
254
255 [[image:1729737941885-204.png||height="506" width="842"]]
yinshi 6.1 256 )))
yinshi 8.1 257 |(% colspan="1" rowspan="1" style="width:52px" %)(((
yinshi 6.1 258
yinshi 9.1 259 )))|(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 260 图例位置
yinshi 10.1 261 )))|(% colspan="1" rowspan="1" style="width:1272px" %)图例默认出现在画布的左上角,同时支持用户设置图例在画布中的位置
yinshi 8.1 262 |(% colspan="1" rowspan="1" style="width:52px" %)(((
yinshi 6.1 263
yinshi 9.1 264 )))|(% colspan="1" rowspan="1" style="width:94px" %)(((
yinshi 6.1 265 颜色字号
yinshi 14.1 266 )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户根据需要自行调整图例的文字颜色和字体大小