Skip to main content

4.2.13 Pie Chart

4.2.13.1 Overview

The Pie Chart divides a circle into slices proportional to each value's share of the total. Each slice represents one category or metric group, making the relative contribution of each part immediately visible.

Pie chart example

The chart supports two rendering styles — Pie (solid circle) and Donut (center hollow). Multiple metrics (e.g., Voltage and Current) are rendered as separate charts side by side. Slice labels showing value and percentage are displayed directly on the chart.

4.2.13.2 When to Use

Use the Pie Chart when:

  • You want to show how a total is distributed across a small number of categories (seven or fewer)
  • The relative proportion between parts matters more than absolute values
  • You need a compact composition chart for reports or dashboards

Avoid the Pie Chart when:

  • Categories are numerous or values are close in magnitude (differences are hard to judge by arc size)
  • You need to track change over time — use the Trend Chart instead
  • You need precise comparison across many categories — use the Bar Chart instead

4.2.13.3 Configuration

Graph Settings

Graph settings control the chart type, layout, and slice label content:

Graph settings — Pie type with ascending sort and tooltip showing all series

The screenshot shows Pie (solid circle) type with Slice Sort set to Ascending — the smallest slice starts first and the largest ends last. The tooltip shows all series values on hover.

SettingDescription
Pie Chart TypeRendering style: Pie (solid circle) or Donut (center hollow). Default is Donut
OrientationOverall layout direction: Horizontal or Vertical
Slice SortOrder of slices: Descending (largest first), Ascending (smallest first), or None (preserve data order)
Label FieldsContent shown directly on each slice. Multi-select: Name, Value, Percent. Defaults to Value and Percent

Tooltip and Legend

Tooltip and Legend work together to provide supplementary information for slice data:

Tooltip and table-mode legend

The screenshot shows Table mode legend below the chart, with Percent and Value columns for each series. The tooltip shows the specific value for a hovered slice (em-2: 225.01 V).

Tooltip settings:

SettingDescription
Tooltip ModeHover display mode: Single, All, or Hidden
Max WidthMaximum tooltip width in pixels

Legend settings:

SettingDescription
ShowDisplay mode: List, Table, or Hidden
PlacementPosition: Bottom or Right
WidthLegend panel width in pixels. Available when placement is Right
Legend ValuesStatistics shown in table mode. Multiple selections supported: Max, Min, Mean, Sum, Percent, and others

Value Mappings

Value Mappings replace raw data values with custom display text and colors. In the screenshot below, the range [200–226] is mapped to a green "GOOD" label:

Value mapping effect

Click Edit Value Mappings to add multiple mapping rules.

Mapping TypeDescription
ValueExact match on a specific value or text string
RangeMatch a numeric range
RegexMatch using a regular expression and replace with substituted text
SpecialMatch null, NaN, booleans, empty strings, and other special cases
OtherMatch all values not covered by the preceding rules

Standard Options and Color Thresholds

Color Thresholds dynamically change slice color based on value. In the screenshot below, voltage is divided into three color zones at boundaries 200 and 226; current is divided at boundaries 5 and 7.5:

Threshold configuration effect

Standard Options:

SettingDescription
MinReference minimum value for display scaling. Leave blank for auto-calculation from data
MaxReference maximum value for display scaling. Leave blank for auto-calculation from data
DecimalsNumber of decimal places for value display. Leave blank for automatic precision
Color SchemeHow series colors are assigned: Single Color, Shades of Color (by series), From Thresholds (by value), Classic Palette, Classic Palette (by series name), or Custom Palette

Color Threshold settings:

SettingDescription
Add ThresholdAdd a threshold rule consisting of a numeric boundary and a color

Color thresholds take effect when the Color Scheme in Standard Options is set to From Thresholds (by value).

Data Links attach clickable URLs to data points, allowing navigation from the chart to related detail pages:

SettingDescription
TitleDisplay name for the link
URLTarget URL, supports variable interpolation
Open in New TabWhether to open the link in a new browser tab
One-ClickWhen enabled, clicking a data point immediately navigates to the URL. Only one link per panel can have this enabled

Overrides

Overrides let you apply style settings to individual series, overriding the global graph configuration for that metric only. Select a metric by name, then add the properties to override. Supported properties include: Series Style, Line Width, Fill Opacity, Line Opacity, Line Color, Point Size, Show Points, Connect Nulls, Stack, Gradient Mode, Show Values.

Downsampling

When query results contain too many data points, downsampling reduces the number of rendered points to improve display performance:

SettingDescription
Enable DownsamplingToggle. Disabled by default
Max Data PointsMaximum number of data points retained after downsampling
Aggregation FunctionAggregation method applied during downsampling, such as AVG, MAX, or MIN

Scheduled Report

The Pie Chart panel supports scheduled reports, which periodically deliver the chart as an image to a specified email or Feishu group. Access the configuration from the panel's top-right menu.

4.2.13.4 Example Scenarios

Voltage distribution across devices. Five devices (em-1 through em-5) are shown as two side-by-side donut charts for Voltage and Current. Slice sizes reflect each device's share. With threshold coloring enabled, devices outside the normal range are highlighted immediately.

Production share by site. An operations manager groups by site name with total production as the metric. The donut chart shows each site's contribution to overall output, and the table legend lists exact values and percentages alongside each site.

Event distribution by severity. An operations team groups by alarm severity category. The pie chart shows what fraction of events were critical, warning, or informational — useful for shift summary reports.