Line
Overview
Line chart is a type of chart used to display data changes over time. A line chart is created by plotting a series of points and connecting them with straight lines.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252Fgit-blob-614195c0207f57bd47333dc51f44808799749188%252Fimage.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=f764ebac&sv=1)
Widget Configuration
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252Fgit-blob-ff199bc3c0741a2d61bd6b6049838ab5fd923a39%252Fimage.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=a18f1940&sv=1)
1. Choose graph style
For a line chart, select Line as the Style in this section.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252Fgit-blob-f50b7716fa157730c6bd975d2eeadb5efa6ad8ad%252Fimage.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=5b5caced&sv=1)
To change the line's weight and transparency, you can adjust using the following options:
Parameter | Options |
Style | Solid, Dot, Dash |
Stroke | Normal, Thin, Thick |
2. Graph your data
Choose data type to draw Widget:
Metrics: See Metric Query to configure for the Metrics data type.
Logs: refer to Log Query to configure for Logs data.
Alias: You can set an alias for each query. This alias will be displayed on the graph and legend, which is very useful for metric names, logs, or lengthy queries with filters.
3. Fixed time range
Fixed time range is a property of a Widget that you can set to filter data on the Widget according to a fixed time range, independent of the Dashboard's time range. Each Widget can have its own Fixed time range setting, and you can select from the time ranges described in the table below. For example, if you choose Global time, the time range for data displayed on the Widget will match the time range you select on the Dashboard. This means that changing the time range on the Dashboard will also change the time range for data on the Widget. It is recommended to use this option. If you choose Pass N minutes (N = 5,10,...), the data time range on the Widget will be fixed (unchanging) to always be the previous 5, 10,... minutes.
4. Configure graph
For each chart type - Line, Bar, Stacked Area, and Pie - you need to select the corresponding chart attributes. The attributes are described in the table below:
Parameter | Options |
Graph legend | Hidden, Top, Bottom, Left, Right |
Connect nulls | Enable, Disable |
Y-axis lable | Custom value |
Y-axis scale type | Linear, Logarithmic |
Y-axis Max value | Custom value |
Y-axis Max value | Custom value |
Select Create to generate a Widget. If you need to change the widget name, you can edit it under Widget name.
Last updated