Search
Document Center

# Simple Log Service:Pie chart (Pro)

Last Updated:Aug 29, 2023

This topic describes the basic configurations of a pie chart (Pro).

## Background information

A pie chart is used to show the percentage of each category of data. The arc length of each slice in a pie chart is proportionate to the quantity that is represented by each category. A pie chart is divided into multiple slices based on the percentages of categories. Each slice shows the percentage of a category of data. The sum of all percentages is equal to 100%.

Simple Log Service provides the following types of standard pie charts: pie chart, donut chart, and polar area chart. Usage notes:

• Donut chart

A donut chart is a variant of a pie chart that has a hollow center. Compared with a pie chart, a donut chart provides the following advantages:

• Displays more information, such as the total number of occurrences of all field values.

• Allows you to compare data between two donut charts based on ring lengths.

• Polar area chart

A polar area chart is a column chart in the polar coordinate system. Each category of data is represented by a slice with the same angle, and the radius of each slice varies based on the value. Compared with a pie chart, a polar area chart provides the following advantages:

• If the result that a query statement returns can be classified into no more than 10 categories, you can use a pie chart to display the query result. If a query statement returns 10 to 30 categories, you can use a polar area chart to display the query result.

• Enlarges the differences among the values of categories because the area of the slice correlates with the square of the radius. The polar area chart is suitable for the comparison of values that have small differences with one another.

• A circle can be used to display periodic data. You can use a polar area chart to analyze value changes in different periods, such as weeks and months.

## Common Settings tab

On the Common Settings tab, you can configure global settings for the pie chart (Pro).

• Basic Configurations section

 Parameter Description Title The title of the pie chart. Show Title If you turn on Show Title, the title of the pie chart (Pro) is displayed. Show Border If you turn on Show Border, the borders of the pie chart (Pro) are displayed. Show Background If you turn on Show Background, the background color of the pie chart (Pro) is displayed. Show Time If you turn on Show Time, the query time range of the pie chart (Pro) is displayed. Fixed Time If you turn on Fixed Time, the specified time range remains unchanged regardless of whether the global time range of the dashboard changes.
• 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 number of digits after the decimal point of numeric values. Display Name The display name. Color Scheme The color scheme that specifies the colors of slices in the pie chart (Pro). Built-in: The built-in color scheme is used. Solid: You can select a color.
• Configure Query and Analysis section

 Parameter Description Category The field that specifies the dimensions to display data. Value Column The field that specifies the numeric value to be displayed.
• Pie Chart Configurations section

 Parameter Description Pie Chart Type The type of the pie chart. Valid values: Pie Chart, Donut Chart, and Polar Area Chart. Tick Text Format The format of the scale text that is displayed for the slices in the pie chart (Pro). Percentage: The scale text in the pie chart (Pro) is displayed in the Percentage format. Example: 1.98%. Category: Percentage: The scale text in the pie chart (Pro) is displayed in the Category: Percentage format. Example: PUT: 1.98%. Category:Numeric Value (Percentage): The scale text in the pie chart (Pro) is displayed in the Category:Numeric Value (Percentage) format. Example: PUT:120 (1.98%). Show Scale Text If you turn on Show Scale Text, the scale text of each slice in the pie chart (Pro) is displayed.
• Legend Configurations section

 Parameter Description Display Legend If you turn on Display Legend, the legend is displayed in the pie chart (Pro). Legend The position of the legend in the chart. Actions The method that is used to display the dimensions in the legend. Single: If you click a dimension in the legend, only the data of the dimension is displayed in the pie chart (Pro). Switch: If you click a dimension in the legend, the data of the dimension is hidden or displayed in the pie chart (Pro). Maximum Width (Height)% The maximum width or height of the legend.

## Drill-down events

Drill-down events are configured to analyze a single field or the result of a single query statement to gain a deeper insight into data. 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 Drill-down events.

For example, you can add the A field to configure an Open Logstore drill-down event for the result of Query Statement A. After you configure the event, click a point on the pie chart (Pro) and click Open Logstore. Then, you are redirected to the Logstore that you specified in the drill-down event.