Updated on 2024-07-23 GMT+08:00

Line Charts

A line chart is used to analyze the data change trend in a certain period, which is reflected in the following aspects:

  • Increment or decrement
  • Increase/Decrease rate
  • Regularity of increase/decrease (such as periodic change)
  • Peak and valley values

Therefore, the line chart is the best choice for analyzing the data change trend over time. In addition, you can draw multiple lines to analyze the change trend of multiple groups of data in the same period, and then analyze the interaction and impact between data (such as in direct or inverse proportion).

Procedure

  1. Log in to the LTS console.
  2. In the navigation pane on the left, choose Log Management. The Log Management page is displayed.
  3. On the Log Management page, select the target log group and log stream. The log stream details page is displayed.
  4. On the log stream details page, enter the query and analysis statements, choose 15 minutes(From now), and set the query and analysis time range.
  5. Select Visualization and click .
  6. On the General Settings tab page, configure line chart parameters and view the line chart.

    Table 1 Line chart parameters

    Type

    Parameter

    Description

    Standard

    Format

    Displays the Y axis in the specified format.

    Unit

    Customize the unit of the Y axis.

    Decimal Places

    Sets the number of decimal places to be displayed.

    Title Font Size

    Sets the font size of the chart title.

    Query/Analysis

    X Axis

    Numeric or string data is supported.

    Y Axis

    Numeric or string data is supported. You can select multiple data records.

    Dimension

    Select a value from the drop-down list. Generally, it is an ordinal variable.

    Compare Trends

    This function can be enabled when the X axis shows time data and Dimension is not specified.

    After this function is enabled, set Comparison to a duration less than or equal to 24 hours. After the setting is complete, compare the data of the current time with the object time data.

    Legend

    Hide Legend

    After this function is enabled, you can hide the legend and comparison results.

    Legend Position

    Select Top or Right.

    Comparison Value

    Indicates whether to display the maximum value, minimum value, average value, and sum value. You can select multiple options.

    Graphics

    Line Shape

    Line type. Select Straight or Curved.

    Line Width

    Width of a polyline.

    Show Data Markers

    Whether to display the connection points.

    Top Margin

    Specifies the distance between the axis and the upper boundary of the graph.

    Bottom Margin

    Specifies the distance between the axis and the lower boundary of the graph.

    Left Margin

    Specifies the distance between the axis and the left boundary of the graph.

    Right Margin

    Specifies the distance between the axis and the right boundary of the graph.

    Tooltip

    Sort By

    Dialog box configuration. When multiple Y-axis data records are selected, they can be sorted and displayed.

    X Axis

    Show

    After this function is enabled, data on the X axis is displayed.

    X Axis Title

    Title of the X axis.

    Y Axis

    Show

    After this function is enabled, the Y axis data is displayed.

    Y Axis Title

    Title of the Y axis.

    Position

    Position of the Y axis. Select Left or Right.

    Figure 1 Line chart