Wiki源代码5.8.2.2 Line Chart
隐藏最后作者
| author | version | line-number | content |
|---|---|---|---|
| |
16.4 | 1 | ==== **[Usage Scenario]** ==== |
| |
1.1 | 2 | |
| |
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: |
| |
1.1 | 4 | |
| |
11.1 | 5 | * ((( |
| |
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. |
| |
11.1 | 7 | ))) |
| 8 | * ((( | ||
| |
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. |
| |
11.1 | 10 | ))) |
| 11 | * ((( | ||
| |
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. |
| |
11.1 | 13 | ))) |
| 14 | * ((( | ||
| |
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. |
| |
11.1 | 16 | ))) |
| |
1.1 | 17 | |
| |
13.1 | 18 | ==== ==== |
| |
2.1 | 19 | |
| |
16.6 | 20 | ==== **[Function Introduction]** ==== |
| |
11.1 | 21 | |
| |
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. |
| |
1.1 | 23 | |
| |
16.8 | 24 | [[image:1740626962720-557.png]] |
| |
3.1 | 25 | |
| |
16.9 | 26 | The composition of a line chart includes: |
| |
1.1 | 27 | |
| |
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. | ||
| |
1.1 | 32 | |
| |
16.11 | 33 | ((( |
| 34 | |||
| |
1.1 | 35 | |
| 36 | |||
| |
16.11 | 37 | |
| |
1.1 | 38 | ))) |
| 39 | |||
| |
16.13 | 40 | ==== 【Basic Attributes】 ==== |
| |
1.1 | 41 | |
| 42 | |||
| |
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 | ||
| |
1.1 | 45 | |
| |
3.1 | 46 | ====== ====== |
| |
1.1 | 47 | |
| |
16.17 | 48 | ==== **[Configuration steps]** ==== |
| |
3.1 | 49 | |
| |
16.17 | 50 | **Step-1 Select Bar Chart** |
| |
1.1 | 51 | |
| |
16.18 | 52 | [[image:1740640778297-295.png]] |
| |
1.1 | 53 | |
| 54 | |||
| |
16.20 | 55 | **Step-2 Select chart display fields** |
| |
1.1 | 56 | |
| |
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 |
| |
1.1 | 58 | |
| |
16.21 | 59 | [[image:1740641005459-993.png]] |
| |
1.1 | 60 | |
| 61 | |||
| |
16.22 | 62 | **Step-3 Style settings** |
| |
1.1 | 63 | |
| |
16.23 | 64 | Divided into three categories: [Basic Style], [Coordinate Axis], [Legend], as shown in the following figure: |
| |
1.1 | 65 | |
| |
16.23 | 66 | [[image:1740641136822-176.png]] |
| |
1.1 | 67 | |
| 68 | |||
| 69 | |||
| |
16.25 | 70 | ==== **[Style Configuration Description]** ==== |
| |
6.1 | 71 | |
| |
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 |
| 73 | |(% colspan="1" rowspan="12" style="width:76.9844px" %)((( | ||
| 74 | Basic Style | ||
| |
6.1 | 75 | |
| 76 | |||
| |
16.27 | 77 | )))|(% colspan="1" rowspan="1" style="width:94px" %)Show heading |(% colspan="1" rowspan="1" style="width:1272px" %)((( |
| |
8.1 | 78 | ((( |
| |
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; |
| |
7.1 | 80 | |
| |
16.27 | 81 | [[image:1740645772547-595.png]] |
| |
6.1 | 82 | ))) |
| |
8.1 | 83 | |
| 84 | ((( | ||
| 85 | |||
| 86 | ))) | ||
| 87 | ))) | ||
| |
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 |
| |
9.1 | 89 | |(% colspan="1" rowspan="1" style="width:94px" %)((( |
| |
16.27 | 90 | Help text |
| |
9.1 | 91 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( |
| |
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" %)((( | ||
| |
7.1 | 98 | ((( |
| |
16.27 | 99 | 提供2种类型:折线、曲线 |
| |
9.1 | 100 | [[image:1729664469432-978.png||height="398" width="875"]] |
| |
6.1 | 101 | ))) |
| |
7.1 | 102 | |
| 103 | ((( | ||
| |
6.1 | 104 | |
| 105 | ))) | ||
| 106 | ))) | ||
| |
9.1 | 107 | |(% colspan="1" rowspan="1" style="width:94px" %)((( |
| |
7.1 | 108 | 配色方案 |
| |
9.1 | 109 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( |
| |
7.1 | 110 | 支持用户自定义(多Y轴时)整体的配色方案 |
| |
6.1 | 111 | ))) |
| |
9.1 | 112 | |(% colspan="1" rowspan="1" style="width:94px" %)((( |
| |
7.1 | 113 | 显示缩略轴 |
| |
9.1 | 114 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户设置针对横轴的缩略轴,即:查看横轴上某一区间的数据 |
| |
7.1 | 115 | [[image:1729664570038-223.png||height="477" width="822"]] |
| |
9.1 | 116 | |(% colspan="1" rowspan="1" style="width:94px" %)((( |
| |
6.1 | 117 | 展示点 |
| |
9.1 | 118 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( |
| 119 | ((( | ||
| |
6.1 | 120 | 默认打开,关闭后画布上不显示折线的每个描点 |
| 121 | |||
| 122 | |||
| |
9.1 | 123 | [[image:1729736532720-382.png||height="441" width="866"]] |
| 124 | ))) | ||
| 125 | |||
| 126 | ((( | ||
| |
6.1 | 127 | |
| 128 | ))) | ||
| |
9.1 | 129 | ))) |
| 130 | |(% colspan="1" rowspan="1" style="width:94px" %)((( | ||
| |
6.1 | 131 | 点大小 |
| |
9.1 | 132 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( |
| |
7.1 | 133 | 控制折线图中点大小 |
| 134 | |||
| |
9.1 | 135 | [[image:1729664677195-525.png||height="515" width="857"]] |
| |
6.1 | 136 | ))) |
| |
9.1 | 137 | |(% colspan="1" rowspan="1" style="width:94px" %)((( |
| |
6.1 | 138 | 展示线 |
| |
9.1 | 139 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( |
| |
7.1 | 140 | 默认打开,关闭后折线的线段消失,只显示点(类似散点图) |
| |
6.1 | 141 | |
| |
9.1 | 142 | [[image:1729664725301-778.png||height="403" width="937"]] |
| |
6.1 | 143 | |
| 144 | |||
| 145 | ))) | ||
| |
9.1 | 146 | |(% colspan="1" rowspan="1" style="width:94px" %)((( |
| |
6.1 | 147 | 线粗细 |
| 148 | |||
| 149 | |||
| |
9.1 | 150 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( |
| |
7.1 | 151 | 支持用户控制折线的线段粗细 |
| |
6.1 | 152 | ))) |
| |
9.1 | 153 | |(% colspan="1" rowspan="1" style="width:94px" %)((( |
| |
6.1 | 154 | 填充 |
| 155 | |||
| 156 | |||
| |
9.1 | 157 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( |
| |
6.1 | 158 | 默认关闭, 打开后每个点向下填充半透明的颜色到X轴,效果如下: |
| 159 | |||
| |
7.1 | 160 | [[image:1729664811246-731.png||height="276" width="683"]] |
| |
6.1 | 161 | |
| 162 | |||
| 163 | ))) | ||
| |
9.1 | 164 | |(% colspan="1" rowspan="5" style="width:76.9844px" %)((( |
| |
7.1 | 165 | 横轴 |
| |
6.1 | 166 | |
| 167 | |||
| |
9.1 | 168 | )))|(% colspan="1" rowspan="1" style="width:94px" %)((( |
| |
6.1 | 169 | 显示轴标题 |
| 170 | |||
| 171 | |||
| |
9.1 | 172 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( |
| 173 | 开启后,画布中横轴下方,将显示用户配置的横轴的数据源的标题 | ||
| 174 | |||
| |
16.1 | 175 | [[image:1737529012159-610.png]] |
| |
6.1 | 176 | ))) |
| |
9.1 | 177 | |(% colspan="1" rowspan="1" style="width:94px" %)((( |
| 178 | 轴标题名称 | ||
| |
6.1 | 179 | |
| 180 | |||
| |
9.1 | 181 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户自定义想要的轴标题名称文案 |
| 182 | |(% colspan="1" rowspan="1" style="width:94px" %)((( | ||
| |
6.1 | 183 | 颜色字号 |
| |
9.1 | 184 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户自定义轴标题的颜色和字号 |
| 185 | |(% colspan="1" rowspan="1" style="width:94px" %)((( | ||
| |
6.1 | 186 | 轴标签 |
| |
9.1 | 187 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( |
| 188 | 控制是否显示轴标签的开关,如下图: | ||
| 189 | |||
| 190 | [[image:1729737350555-287.png||height="438" width="900"]] | ||
| |
6.1 | 191 | ))) |
| |
9.1 | 192 | |(% colspan="1" rowspan="1" style="width:94px" %)((( |
| |
6.1 | 193 | (轴标签)自动旋转 |
| |
9.1 | 194 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( |
| 195 | 轴标签会斜45°显示,如下图 | ||
| 196 | |||
| 197 | [[image:1729737429518-371.png]] | ||
| |
6.1 | 198 | ))) |
| |
10.1 | 199 | |(% colspan="1" rowspan="4" style="width:76.9844px" %)((( |
| |
7.1 | 200 | 纵轴 |
| |
6.1 | 201 | |
| 202 | |||
| |
9.1 | 203 | )))|(% colspan="1" rowspan="1" style="width:94px" %)((( |
| |
6.1 | 204 | 显示轴标题 |
| 205 | |||
| 206 | |||
| |
9.1 | 207 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( |
| |
10.1 | 208 | 开启后,画布中纵轴左侧,将显示用户配置的纵轴的(第一个数据源)的标题 |
| |
6.1 | 209 | |
| |
10.1 | 210 | (图中:“Y轴标题”是轴标题, “桌子、椅子、窗帘”是图例) |
| 211 | |||
| 212 | [[image:1729737694678-922.png]] | ||
| |
6.1 | 213 | ))) |
| |
9.1 | 214 | |(% colspan="1" rowspan="1" style="width:94px" %)((( |
| |
6.1 | 215 | 标题内容 |
| |
10.1 | 216 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户自定义想要的轴标题名称文案 |
| |
9.1 | 217 | |(% colspan="1" rowspan="1" style="width:94px" %)((( |
| |
6.1 | 218 | 轴标签 |
| |
9.1 | 219 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( |
| |
10.1 | 220 | 控制Y轴轴标签是否显示的开关 |
| 221 | |||
| 222 | [[image:1729737826799-987.png||height="434" width="369"]] | ||
| |
6.1 | 223 | ))) |
| |
9.1 | 224 | |(% colspan="1" rowspan="1" style="width:94px" %)((( |
| |
6.1 | 225 | 刻度数 |
| |
10.1 | 226 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户配置的Y轴的刻度数(注意:这里的刻度数是一个预估值,报表引擎在渲染时可能会根据实际情况改变最终呈现的刻度数) |
| |
16.26 | 227 | |(% colspan="1" rowspan="3" style="width:76.9844px" %)((( |
| |
6.1 | 228 | 图例 |
| 229 | |||
| 230 | |||
| |
9.1 | 231 | )))|(% colspan="1" rowspan="1" style="width:94px" %)((( |
| |
6.1 | 232 | 显示图例 |
| |
9.1 | 233 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( |
| |
10.1 | 234 | 默认开启, 关闭后则不显示图例 |
| 235 | |||
| 236 | [[image:1729737941885-204.png||height="506" width="842"]] | ||
| |
6.1 | 237 | ))) |
| |
16.26 | 238 | |(% colspan="1" rowspan="1" style="width:94px" %)((( |
| |
6.1 | 239 | 图例位置 |
| |
10.1 | 240 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)图例默认出现在画布的左上角,同时支持用户设置图例在画布中的位置 |
| |
16.26 | 241 | |(% colspan="1" rowspan="1" style="width:94px" %)((( |
| |
6.1 | 242 | 颜色字号 |
| |
14.1 | 243 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户根据需要自行调整图例的文字颜色和字体大小 |