Skip to main content

4.2.6 Bar Chart

4.2.6.1 Overview

The Bar Chart represents values as vertical or horizontal bars, where bar height (or width) encodes the data value. It is designed for aggregated data — values grouped by time buckets or categorical dimensions — making it ideal for comparison across periods or groups.

Bar chart example

Each bar corresponds to one aggregated value: a sum, average, or count over a time window (e.g., hourly energy consumption) or over a category (e.g., output per production line). Multiple metrics can be displayed as grouped or stacked bar sets.

4.2.6.2 When to Use

Use the Bar Chart when:

  • Comparing discrete quantities across time periods (hourly, daily, monthly)
  • Comparing the same metric across multiple categories or sites
  • Visualizing the contribution of parts to a whole using stacked bars
  • The data is inherently aggregated rather than a continuous time-series

For continuous time-series trend analysis, use the Trend Chart. For a single summary value (e.g., total consumption today), use the Stat Value panel.

4.2.6.3 Configuration

Graph Settings

Orientation and Stacking

The Bar Chart supports Vertical (default) and Horizontal layouts. Horizontal bars work better when category labels are long or when comparing many groups side by side:

Horizontal bar chart

Enabling Stack Series stacks multiple metrics within the same bar, making it easy to see each component's contribution to the total:

Stacked bar chart

Bar Style

SettingDescription
OrientationVertical (bars extend up) or Horizontal (bars extend right)
Bar AlignmentPosition of the bar within its time bucket: Start, Middle, or End
Show ValuesToggle to display value labels directly on the bars
Stack SeriesStacking mode: No Stack, Same Sign, All, Positive Only, Negative Only
Bar WidthPercentage of available slot width filled by each bar, range 0–100 (0 = auto)
Bar Corner RadiusRounded corner radius for bar tops, range 0–100
Line WidthBorder stroke thickness around each bar, range 0–10 (0 = no border)
Fill OpacityOpacity of the bar fill color, range 0–1
Gradient ModeColor gradient applied to bars: None, Opacity, Hue, or Scheme

Gradient Mode adds gradient fill effects to bars for enhanced visual depth:

Gradient mode effect

Labels

When category labels are long or numerous, they can overlap on the axis. The following settings improve readability:

SettingDescription
Rotate LabelsRotation angle for axis labels, –90° to +90° (in 45° steps)
Label IntervalLabel density: Auto, Small, Medium, Large

Axis Settings

The Y axis can be labeled with a name, and its range can be set manually. When plotting multiple metrics with very different scales, enable the Right Y Axis to assign each metric to its own scale:

Axis configuration

SettingDescription
X AxisShow or hide the X axis
X-Axis Time FormatDisplay format for X-axis timestamps. Leave blank for automatic formatting
Rotate LabelsRotation angle for X-axis labels, –90° to +90°
Label IntervalLabel density: Auto, Small, Medium, Large
Show Grid LinesGrid-line visibility: Auto, Show, or Hide
Left Y Axis TitleLabel for the left Y axis
Value RangeMin and Max for the left Y axis (blank = auto-scale)
Right Y AxisEnable a secondary Y axis on the right
Right Y Axis TitleLabel for the right Y axis. Available when the right axis is enabled
Right Y Axis SeriesSelect which series are bound to the right Y axis
Value Range (Right)Min and Max for the right Y axis. Available when enabled

Limits

Limit lines derived from attribute configuration — LoLo, Lo, Target, Hi, HiHi — can be displayed as horizontal reference lines across the bars, marking safe and alert zones:

Bar chart with limit lines

SettingDescription
Add LimitsSelect the metric source, then choose a limit type from the dropdown. Multiple limits can be added
Display AsHow limits are rendered: Line, Area, or Both

Tooltip

The tooltip appears when hovering over a bar, displaying detailed values for that data point. In "All" mode, the tooltip shows all series values at that time:

Tooltip showing multiple series values

SettingDescription
Tooltip ModeHover display mode: Single, All, or Hidden
Value SortSort order for values when Tooltip Mode is All: None, Ascending, or Descending
Hide Zero ValuesWhether to hide values equal to 0 from the tooltip when mode is All
Max WidthMaximum tooltip width in pixels
Max HeightMaximum tooltip height in pixels

Legend

In table mode, the legend displays summary statistics (max, min, mean, sum, etc.) alongside each series:

Table-mode legend

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, Count, First, Last, and others

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

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

Value Mappings

Value Mappings replace raw data values with custom display text and colors:

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

Color Thresholds

Color thresholds dynamically change bar color based on value, highlighting data that exceeds normal operating ranges:

SettingDescription
Thresholds ModeHow threshold values are interpreted: Absolute or Percentage
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.

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 properties to override: 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 bar 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.6.4 Example Scenarios

Daily energy consumption comparison. An energy analyst compares electricity consumption across each day of the past month. A bar chart with a 1-day sliding window shows one bar per day, with the Hi limit line highlighting days that exceeded the target consumption level.

Site-by-site throughput. An operations manager adds a dimension grouping by site name, with each bar representing one site's total production output for the selected period. Switching to horizontal layout improves readability when site names are long.

Residential vs. industrial load stacking. Two metrics — residential consumption and industrial consumption — are added to the same bar chart with Stack Series enabled. Each bar shows the total load with the two components visually separated by color, making it easy to see which component dominates at each time bucket.