tencent cloud

DokumentasiCloud Log Service

Pie Chart

Download
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-05-14 21:15:12
A pie chart describes the proportions of different types. It measures the proportion of each type by the slice size. It is suitable for proportion statistics scenarios, for example, analyzing the proportions of different error codes.

Operation Steps

1. Log in to the CLS console, choose Dashboard > Dashboard List, and then select the dashboard you want to view.
2. Click Add Chart to create a chart, and select Pie Chart as the chart type.
3. Configure the chart as needed.

General configuration

Configuration Item
Description
Basic Info
Chart Name: Set the display name of the table, which can be left empty.
Legend
Set the chart legends. You can control the legend styles and positions and add comparison data to legends.
Standard Configuration
Set the unit of all metric-type fields in the chart. For more information, see Unit Configuration.
Interaction Event
Custom interaction event feature. Clicking chart elements can trigger interactions such as opening the search and analysis page, navigating to a dashboard, or accessing a third-party URL. For details, see Interaction Events.

Statistical Analysis Fields

Select at least one metric field for a pie chart. When a data mismatch occurs, you need to manually select the appropriate statistical analysis fields.
Configuration Item
Description
Dimension Field
Classification field. By default, fields with the string data type are selected. If no string field exists, you must manually specify a field.
Metric Field
Numerical field. By default, fields with the number data type are selected. If no number field exists, you must manually specify a field.

Pie chart configuration

Configuration Item
Description
Chart Style
Pie Chart Type: Control the pie chart style. A solid chart is a pie chart, and a hollow chart is a donut chart.
Metric Aggregation: This is an advanced feature that allows you to select a method for aggregating the values of the same metric before plotting. For example, if a range of values containing results from multiple time points is returned for a metric, the system aggregates the values from all those time points before plotting. By default, no aggregation is performed. You can set a limit on the maximum number of metrics to be displayed. Any metrics beyond this limit are hidden.
Sort By: Control the slice sorting order, which can be ascending and descending. Sorting is disabled by default.
Top Items to Show: Merge slices other than top N slices into the "Others" slice. If there are too many slices, you can use this feature to focus on top N slices.
Tag: Display pie chart labels. You can set name, value, and/or percentage as tags.

Statement Example

Percentage of HTTP status codes displayed in Nginx logs:
* | select try_cast(status as varchar) as status, count(*) as log_count group by status





Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan