All Products
Search
Document Center

Simple Log Service:Line chart (Pro)

Last Updated:Sep 03, 2024

You can use a line chart (Pro) to visualize the results of multiple query statements. You can also configure personalized display settings on the Fields tab. This topic describes the basic configurations of a line chart (Pro).

Introduction

A line chart is used to analyze the value changes of a categorical variable over a continuous time range. In most cases, the analysis is based on a specified time range. You can intuitively view value trends. You can use a line chart to analyze the following change characteristics of values over a specified time range:

  • Increment or decrement

  • Increment or decrement rate

  • Increment or decrement pattern, such as periodicity

  • Peak value and bottom value

Line charts are the optimal choice for you to analyze value changes over a time range. You can also use a line chart to analyze the value changes of multiple fields in multiple lines over the same time range. Then, you can analyze the relationships between the fields. For example, the values of the fields are directly or inversely proportional to each other.

For more information about how to create a line chart, see Add a chart (Pro) to a dashboard.

Configurations on the Common Settings tab

You can configure global settings for a line chart on the Common Settings tab.

  • Parameters in the Basic Configurations section

    Parameter

    Description

    Title

    The title of the line chart.

    Show Title

    If you turn on Show Title, the title of the line chart is displayed.

    Show Border

    If you turn on Show Border, the borders of the line chart are displayed.

    Show Background

    If you turn on Show Background, the background color of the line chart is displayed.

    Show Time

    If you turn on Show Time, the time range of the query is displayed in the line chart.

    Fixed Time

    If you turn on Fixed Time, the time range of the query for the line chart is independent of the global time range of the dashboard.

  • Parameters in the Standard Configurations section

    Parameter

    Description

    Format

    The display format of numeric values.

    Unit

    The unit of numeric values.

    Number of Digits after Decimal Point

    The decimal places of numeric values.

    Display Name

    The name of the legend.

    If you specify a value for Display Name, the value is used as the name for all items in the legend that is displayed in the line chart. If you want to change the name of an item in the legend, you must configure parameters on the Fields tab.

    Color Scheme

    The color scheme of the line chart. The color scheme is applied to the background and legend of the line chart.

    • Built-in: uses the built-in color scheme.

    • Solid: uses the color that you select.

  • Parameters in the Configure Query and Analysis section

    Parameter

    Description

    Axis X Field

    Select a field as the x-axis.

    By default, Simple Log Service automatically selects an appropriate field as the x-axis.

    Axis Y Field

    Select a field as the y-axis.

    By default, Simple Log Service automatically selects an appropriate field as the y-axis.

  • Parameters in the Data Configuration section

    Parameter

    Description

    Data Completion

    If you turn on Data Completion, Simple Log Service automatically replaces missing values with a specified value from the first data record within the time window specified by Completion window.

    Completion window

    The time window of data for which Simple Log Service automatically replaces missing values with a specified value. Minimum value: 0. Unit: seconds.

    By default, Simple Log Service automatically specifies the value of Completion window.

    Text-substituted Value

    The value that you want to use to replace missing values. Default value: 0, which indicates that Simple Log Service replaces missing values with 0.

  • Parameters in the Legend Configurations section

    Parameter

    Description

    Display Legend

    If you turn on Display Legend, the legend of the line chart is displayed.

    Legend

    The position of the legend in the line chart.

    Actions

    The data display effect that you want to achieve when you click a legend item.

    • Single: When you click a legend item, only the data that corresponds to the legend item is displayed in the line chart.

    • Switch: When you click a legend item, the data that corresponds to the legend item is hidden or displayed in the line chart.

    Maximum Width (Height)%

    The maximum width and height of the legend.

  • Parameters in the Tooltip Configurations section

    Parameter

    Description

    Sorting Order

    The sorting method of data.

    Display Mode

    Values:

    • All

    • Single

    Additional Information

    Add entries of additional information to the tooltip. You can add an entry of additional information to each query statement. You can specify ${{field}} in an entry to reference the field value from the corresponding query result.

  • Parameters in the Axis X section

    Parameter

    Description

    Display Axis X

    If you turn on Display Axis X, the x-axis of the line chart is displayed.

    Axis X Title

    The title of the x-axis.

    Axis X Height

    The height of the x-axis.

    By default, Simple Log Service automatically specifies the height of the x-axis.

    Format

    Select the appropriate format to perform formatting of the time on the x-axis.

    Drag and Zoom

    Values:

    • Global

    • Single

  • Parameters in the Axis Y section

    Parameter

    Description

    Display Axis Y

    If you turn on Display Axis Y, the y-axis of the line chart is displayed.

    Axis Y Title

    The title of the y-axis.

    Axis Y Position

    The position of the y-axis.

    Stacking

    If this parameter is set to Yes, the Y-axis data is displayed in a stacked manner.

    Axis Y Width

    The width of the y-axis.

    By default, Simple Log Service automatically specifies the width of the y-axis.

    Max Value

    The maximum value of the y-axis.

    By default, Simple Log Service automatically specifies the maximum value of the y-axis.

    Minimum

    The minimum value of the y-axis.

    By default, Simple Log Service automatically specifies the minimum value of the y-axis.

    Elastic Maximum Value

    The elastic maximum value of the y-axis. The elastic maximum value takes effect only when all values of the y-axis are less than the elastic maximum value.

    By default, Simple Log Service automatically specifies the elastic maximum value of the y-axis.

    Elastic Minimum Value

    The elastic minimum value of the y-axis. The elastic minimum value takes effect only when all values of the y-axis are greater than the elastic minimum value.

    By default, Simple Log Service automatically specifies the elastic minimum value of the y-axis.

    Axis Y ID

    The ID of the y-axis. This parameter does not take effect if you configure only one y-axis on the Common Settings tab. If you want to configure multiple y-axes, you must configure parameters on the Fields tab. The ID of the y-axis is a string. A y-axis that uses a specified ID represents a unique y-axis in a line chart. For more information, see Create a line chart with multiple y-axes.

    The configuration of the ID for the y-axis takes precedence over the unit that you specify in the Standard Configurations section. For example, if two y-axes use the same unit, the two y-axes are merged into one y-axis. If two y-axes use the same unit but different IDs, they are displayed as two y-axes.

  • Parameters in the Chart Configurations section

    Parameter

    Description

    Chart Type

    The type of the line chart.

    Connection Mode

    The connection mode of the line in the line chart.

    Connector Width

    The width of the line.

    Show Points

    Specifies whether to display points in the line chart.

    Transparency

    The transparency of the line chart.

    Point Size

    The size of each point in the line chart.

    Gradient Mode

    The gradient mode of the line chart.

    • Transparency: If you select this mode, the line chart uses a color gradient that is affected by the line color and the value of Transparency.

    • No Gradient: If you select this mode, the line chart does not use a color gradient. The line color is used in the line chart.

  • Threshold

    Parameter

    Description

    Upper Boundary

    Select the upper boundary.

    Lower Boundary

    Select the lower boundary.

    Boundary Fill Color

    Set the fill color.

    Boundary Fill Color Opacity

    Set the color opacity.

  • Parameters in the Replace Variable section

    Parameter

    Description

    Replace Variable

    The settings of variable replacement. You can click AddReplace Variable to add a filter of the Replace Variable type to a single chart. After you configure the settings of variable replacement on the Common Settings tab, Simple Log Service adds a filter in the upper-left corner of the chart. You can select a value from the filter drop-down list. After you select a value, Simple Log Service automatically replaces the variable in the query statement of the chart with the variable value indicated by the value that you select, and performs a query and analysis operation. For more information, see Example 2: Configure variable replacement.

  • Parameters in the Documentation section

    Parameter

    Description

    Add Documentation Link

    The button that allows you to specify custom document links and descriptions. After you configure the settings, the specified information is displayed in the upper right corner of the line chart.

Configurations on the Fields tab

You can configure personalized display settings for the results of a single query statement or for a single column of data in the results. For more information about the parameters on the Fields tab, see Configurations on the Common Settings tab.

For example, in the A > pv section, you can configure settings for the pv field in the results of Query Statement A. In the B section, you can configure settings for the results of Query Statement B. In the following figure, the green line indicates the pv field in the results of Query Statement A, and the blue line indicates the results of Query Statement B. You can set Connector Width to 6 for the green line and 2 for the blue line.

Configurations on the Fields tab

Configurations on the Interaction Occurrences tab

Drill-down events are used to analyze a single field or the results of a single query statement from a finer-grained dimension. Drill-down events include events to open a Logstore, open a saved search, open a dashboard, open trace analysis, open trace details, and customize an HTTP link. For more information, see Interaction occurrences

For example, in the A > pv section, you can configure an Open Logstore drill-down event for the pv field in the results of Query Statement A. After you configure the event, you can click a point on the green line of the line chart and click Open Logstore. Then, you are navigated to the Logstore that you specify.

Table (Pro)