Updated on 2024-09-19 GMT+08:00

Pie Charts

A pie chart shows the proportion of different categories. Different categories are compared by radian. A pie is divided into multiple sectors based on the proportion of each category. The entire pie indicates the total volume. Each sector indicates the proportion of the category to the total. The sum of all sectors is 100%. A pie chart contains the following elements:

  • Sector
  • Text percentage
  • Legend

Type

LTS provides three types of pie charts: default pie chart, cyclic chart, and Coxcomb chart.

  • Cyclic

    Essentially, a cyclic chart hollows out the center of a pie chart. Cyclic charts are better than pie charts in the following aspects:

    • Cyclic charts display more information such as the total number.
    • It is not intuitive to compare two pie charts directly. You can compare two cyclic charts by the cyclic bar length.
  • Coxcomb

    A Coxcomb chart is not a cyclic chart in essence. Instead, it is a bar chart drawn in the polar coordinate system. Each category is evenly divided by an arc. The radius of the arc indicates the data size. Coxcomb charts are better than pie charts in the following aspects:

    • A pie chart can contain a maximum of 10 categorized data records, while a Coxcomb chart can contain 10 to 30 data records.
    • Because the radius and area are squared, the Coxcomb chart magnifies the difference between the values of each category. It is suitable for comparing the values of similar sizes.
    • Due to the periodicity of a circle, the Coxcomb chart is also suitable for displaying data by time period, such as by week and month.

Checking Pie Charts

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

    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.

    Pie Chart

    Pie Chart Type

    Includes pie, cyclic, and Coxcomb charts.

    Show Scale

    After this function is enabled, the text label on the pie chart is displayed, which can be used to describe the data information of the chart, such as the value and name.

    Scale Text

    This parameter can be set to Category, Percent, Category: %, or Category: Value (%).

    Label Position

    After Show Scale is enabled, you can set this parameter to adjust the position of the label in the chart.

    Query/Analysis

    Value

    Specifies the value corresponding to the categorized data.

    Layer 1 Data

    Category

    Specifies the categorized data.

    Display as Sectors

    Specifies the number of pie sectors to be displayed.

    Sort By

    Specifies the ascending or descending order.

    Display Rest as Others

    Specifies whether to display the data of other types as Other.

    Add Layer

    Click Add Layer and set the data of the second layer. The data of each layer includes the category, display sectors, sorting mode, and displaying rest sectors as others.

    Legend

    Hide Legend

    After this function is enabled, you can hide the legend and its content.

    Legend

    Select Value or Percent, or both.

    Legend Position

    Position of the legend in the chart. Select Top or Right.

    Graphics

    Outer Radius

    Specifies the outer radius of the pie chart. The value ranges from 40 to 100.

    Inside Radius

    Specifies the inside radius of the pie chart. The value ranges from 0 to 100.

    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.