Updated on 2023-11-29 GMT+08:00

Bar Charts

A bar chart uses vertical or horizontal bars to compare values between categories. It shows the data of different categories and counts the number of elements in each category.

The bar chart provided by LTS consists of vertical bars and horizontal bars. The width of the rectangle block is fixed, and the height indicates the value. When multiple columns of data are mapped to the Y axis, the data is displayed in group columns.

By default, vertical bars are used. You can select either vertical or horizontal bars. A bar chart contains the following elements:

  • X axis (horizontal axis)
  • Y axis (vertical axis)
  • Rectangular block
  • Legend

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 bar chart parameters and view the bar chart.

    Table 1 Bar 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.

    Bar Chart

    Direction

    Select Bar chart or Horizontal bar chart.

    Column Width

    Sets the column width.

    Display Value

    After this function is enabled, the value indicated by each bar is displayed.

    Font Size

    Sets the font size of each bar.

    Stacked

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

    Query/Analysis

    X Axis

    Numeric or string data is supported.

    Y Axis

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

    Legend

    Hide Legend

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

    Legend Position

    Position of the legend in the chart. 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

    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

    None, Ascending, and Descending

    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.

    Figure 1 Bar chart