Wiki源代码5.8.2.2 Line Chart
显示最后作者
| author | version | line-number | content |
|---|---|---|---|
| 1 | ==== **[Usage Scenario]** ==== | ||
| 2 | |||
| 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: | ||
| 4 | |||
| 5 | * ((( | ||
| 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. | ||
| 7 | ))) | ||
| 8 | * ((( | ||
| 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. | ||
| 10 | ))) | ||
| 11 | * ((( | ||
| 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. | ||
| 13 | ))) | ||
| 14 | * ((( | ||
| 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. | ||
| 16 | ))) | ||
| 17 | |||
| 18 | ==== ==== | ||
| 19 | |||
| 20 | ==== **[Function Introduction]** ==== | ||
| 21 | |||
| 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. | ||
| 23 | |||
| 24 | [[image:1740626962720-557.png]] | ||
| 25 | |||
| 26 | The composition of a line chart includes: | ||
| 27 | |||
| 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. | ||
| 32 | |||
| 33 | ((( | ||
| 34 | |||
| 35 | |||
| 36 | |||
| 37 | |||
| 38 | ))) | ||
| 39 | |||
| 40 | ==== 【Basic Attributes】 ==== | ||
| 41 | |||
| 42 | |||
| 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 | ||
| 45 | |||
| 46 | ====== ====== | ||
| 47 | |||
| 48 | ==== **[Configuration steps]** ==== | ||
| 49 | |||
| 50 | **Step-1 Select Bar Chart** | ||
| 51 | |||
| 52 | [[image:1740640778297-295.png]] | ||
| 53 | |||
| 54 | |||
| 55 | **Step-2 Select chart display fields** | ||
| 56 | |||
| 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 | ||
| 58 | |||
| 59 | [[image:1740641005459-993.png]] | ||
| 60 | |||
| 61 | |||
| 62 | **Step-3 Style settings** | ||
| 63 | |||
| 64 | Divided into three categories: [Basic Style], [Coordinate Axis], [Legend], as shown in the following figure: | ||
| 65 | |||
| 66 | [[image:1740641136822-176.png]] | ||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | ==== **[Style Configuration Description]** ==== | ||
| 71 | |||
| 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="11" style="width:76.9844px" %)((( | ||
| 74 | Basic Style | ||
| 75 | |||
| 76 | |||
| 77 | )))|(% colspan="1" rowspan="1" style="width:94px" %)Show heading |(% colspan="1" rowspan="1" style="width:1272px" %)((( | ||
| 78 | ((( | ||
| 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; | ||
| 80 | |||
| 81 | [[image:1740645772547-595.png]] | ||
| 82 | ))) | ||
| 83 | |||
| 84 | ((( | ||
| 85 | |||
| 86 | ))) | ||
| 87 | ))) | ||
| 88 | |(% colspan="1" rowspan="1" style="width:94px" %)Chart title|(% colspan="1" rowspan="1" style="width:1272px" %)You can name the chart yourself | ||
| 89 | |(% colspan="1" rowspan="1" style="width:94px" %)((( | ||
| 90 | Help text | ||
| 91 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( | ||
| 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" %)((( | ||
| 98 | ((( | ||
| 99 | Provide 2 types: line and curve[[image:1740646556619-157.png]] | ||
| 100 | ))) | ||
| 101 | |||
| 102 | ((( | ||
| 103 | |||
| 104 | ))) | ||
| 105 | ))) | ||
| 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; | ||
| 107 | |(% colspan="1" rowspan="1" style="width:94px" %)((( | ||
| 108 | Display thumbnail axis | ||
| 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]] | ||
| 110 | |(% colspan="1" rowspan="1" style="width:94px" %)Display point|(% colspan="1" rowspan="1" style="width:1272px" %)((( | ||
| 111 | ((( | ||
| 112 | By default, when turned off, each trace point of the line will not be displayed on the chart | ||
| 113 | |||
| 114 | |||
| 115 | [[image:1740732311368-570.png]] | ||
| 116 | ))) | ||
| 117 | |||
| 118 | ((( | ||
| 119 | |||
| 120 | ))) | ||
| 121 | ))) | ||
| 122 | |(% colspan="1" rowspan="1" style="width:94px" %)((( | ||
| 123 | Point size | ||
| 124 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( | ||
| 125 | Control the size of the midpoint in the line chart | ||
| 126 | |||
| 127 | |||
| 128 | ))) | ||
| 129 | |(% colspan="1" rowspan="1" style="width:94px" %)((( | ||
| 130 | Display Line | ||
| 131 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( | ||
| 132 | By default, when turned off, the line segments of the line chart disappear and only points are displayed (similar to a scatter plot) | ||
| 133 | |||
| 134 | [[image:1740732470025-322.png]] | ||
| 135 | ))) | ||
| 136 | |(% colspan="1" rowspan="1" style="width:94px" %)((( | ||
| 137 | Line thickness | ||
| 138 | |||
| 139 | |||
| 140 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)Support users to control the thickness of line segments in polylines | ||
| 141 | |(% colspan="1" rowspan="5" style="width:76.9844px" %)((( | ||
| 142 | Horizontal axis | ||
| 143 | |||
| 144 | |||
| 145 | )))|(% colspan="1" rowspan="1" style="width:94px" %)((( | ||
| 146 | Display axis title | ||
| 147 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( | ||
| 148 | After activation, the title of the horizontal data source will be displayed below the horizontal axis in the chart | ||
| 149 | |||
| 150 | [[image:1737529012159-610.png]] | ||
| 151 | ))) | ||
| 152 | |(% colspan="1" rowspan="1" style="width:94px" %)((( | ||
| 153 | 轴标题名称 | ||
| 154 | |||
| 155 | |||
| 156 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户自定义想要的轴标题名称文案 | ||
| 157 | |(% colspan="1" rowspan="1" style="width:94px" %)((( | ||
| 158 | 颜色字号 | ||
| 159 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户自定义轴标题的颜色和字号 | ||
| 160 | |(% colspan="1" rowspan="1" style="width:94px" %)((( | ||
| 161 | 轴标签 | ||
| 162 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( | ||
| 163 | 控制是否显示轴标签的开关,如下图: | ||
| 164 | |||
| 165 | [[image:1729737350555-287.png||height="438" width="900"]] | ||
| 166 | ))) | ||
| 167 | |(% colspan="1" rowspan="1" style="width:94px" %)((( | ||
| 168 | (轴标签)自动旋转 | ||
| 169 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( | ||
| 170 | 轴标签会斜45°显示,如下图 | ||
| 171 | |||
| 172 | [[image:1729737429518-371.png]] | ||
| 173 | ))) | ||
| 174 | |(% colspan="1" rowspan="4" style="width:76.9844px" %)((( | ||
| 175 | 纵轴 | ||
| 176 | |||
| 177 | |||
| 178 | )))|(% colspan="1" rowspan="1" style="width:94px" %)((( | ||
| 179 | 显示轴标题 | ||
| 180 | |||
| 181 | |||
| 182 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( | ||
| 183 | 开启后,画布中纵轴左侧,将显示用户配置的纵轴的(第一个数据源)的标题 | ||
| 184 | |||
| 185 | (图中:“Y轴标题”是轴标题, “桌子、椅子、窗帘”是图例) | ||
| 186 | |||
| 187 | [[image:1729737694678-922.png]] | ||
| 188 | ))) | ||
| 189 | |(% colspan="1" rowspan="1" style="width:94px" %)((( | ||
| 190 | 标题内容 | ||
| 191 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户自定义想要的轴标题名称文案 | ||
| 192 | |(% colspan="1" rowspan="1" style="width:94px" %)((( | ||
| 193 | 轴标签 | ||
| 194 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( | ||
| 195 | 控制Y轴轴标签是否显示的开关 | ||
| 196 | |||
| 197 | [[image:1729737826799-987.png||height="434" width="369"]] | ||
| 198 | ))) | ||
| 199 | |(% colspan="1" rowspan="1" style="width:94px" %)((( | ||
| 200 | 刻度数 | ||
| 201 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户配置的Y轴的刻度数(注意:这里的刻度数是一个预估值,报表引擎在渲染时可能会根据实际情况改变最终呈现的刻度数) | ||
| 202 | |(% colspan="1" rowspan="3" style="width:76.9844px" %)((( | ||
| 203 | 图例 | ||
| 204 | |||
| 205 | |||
| 206 | )))|(% colspan="1" rowspan="1" style="width:94px" %)((( | ||
| 207 | 显示图例 | ||
| 208 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)((( | ||
| 209 | 默认开启, 关闭后则不显示图例 | ||
| 210 | |||
| 211 | [[image:1729737941885-204.png||height="506" width="842"]] | ||
| 212 | ))) | ||
| 213 | |(% colspan="1" rowspan="1" style="width:94px" %)((( | ||
| 214 | 图例位置 | ||
| 215 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)图例默认出现在画布的左上角,同时支持用户设置图例在画布中的位置 | ||
| 216 | |(% colspan="1" rowspan="1" style="width:94px" %)((( | ||
| 217 | 颜色字号 | ||
| 218 | )))|(% colspan="1" rowspan="1" style="width:1272px" %)支持用户根据需要自行调整图例的文字颜色和字体大小 |