Skip to main content

4.2.7 State Timeline

4.2.7.1 Overview

The State Timeline displays how a value changes over time as a horizontal colored band. Each segment of the band is colored and labeled according to the value it represents, making it easy to see at a glance how long a process was in each state and when transitions occurred.

State timeline example

Each segment shows the start and end values for that time interval (e.g., 212→230), with color determined by threshold or value mapping rules. Multiple metrics render as stacked horizontal bands, enabling side-by-side comparison of state histories across different signals.

4.2.7.2 When to Use

Use the State Timeline when:

  • Your data represents discrete states rather than continuous measurements (on/off, running/idle/fault, open/closed)
  • You want to see how long a process spent in each state and when transitions happened
  • You need to compare state histories across multiple signals or equipment on the same time axis

For continuous numeric signals, use the Trend Chart. For a compact grid view of states bucketed by time interval across many metrics, use the Status History panel.

4.2.7.3 Configuration

Graph Settings

Graph settings control the appearance and data-handling behavior of state bands:

Graph settings with multiple metrics stacked

The screenshot shows three stacked metrics: Power (W) is merged into a single band because its value is constant, while Current (A) and Voltage (V) each show individual segments.

SettingDescription
Merge Consecutive ValuesWhen enabled, adjacent segments with the same value are merged into a single band. Default is On
Show ValuesWhether to display the value label inside each segment: Auto, Always, or Never
Value AlignmentHorizontal alignment of labels within segments: Left, Center, or Right. Default is Center
Row HeightRelative height of each band, range 0–1
Border WidthWidth of the border drawn around each segment in pixels (0 = no border), range 0–10
Fill OpacityTransparency of the state color fill, range 0–1
Connect NullsHow to handle null/missing data: Never (leave gaps), Always (extend previous state), or Threshold (connect if gap is smaller than specified duration). Default is Never
Disconnect ValuesBreak the band when the gap between adjacent data points exceeds a specified duration: Never or Threshold. Default is Never

Axis

The State Timeline uses the X axis only:

Axis configuration

SettingDescription
X AxisShow or hide the X axis
X Axis Time FormatDisplay format for X-axis timestamps. Available when X Axis is shown
Rotate LabelsRotation angle for X-axis time labels, range -90° to +90°
Label IntervalDensity of X-axis labels: Auto, Small, Medium, or Large
Show Grid LinesWhether to render X-axis grid lines: Auto, On, or Off

Tooltip

When hovering over a segment, the tooltip shows the segment's start time, end time, duration, and value:

Tooltip showing segment details

SettingDescription
Tooltip ModeWhat is shown when hovering: Single (only the hovered metric) or Hidden
Max WidthMaximum width of the tooltip in pixels

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, and others

Standard Options

SettingDescription
MinLower bound for values. Leave blank for auto-calculation from data
MaxUpper bound for values. 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 state bands:

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 band immediately follows the link. Only one link per panel can have this enabled

Value Mappings and Color Thresholds

Value Mappings define the display color and text label for each state. Color Thresholds define numeric ranges and their associated colors. Used together, they provide flexible coloring and labeling for both discrete states and continuous values:

Value mappings and thresholds in effect

In the screenshot, a Value Mapping labels Current (A) values in the range [4, 6] as green "LOW". Thresholds divide Voltage (V) into four color zones at boundaries 220, 230, and 250.

Value Mapping types:

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 Threshold settings:

SettingDescription
Thresholds ModeHow threshold values are interpreted: Absolute (raw data values) or Percentage (percentage of the Min–Max range)
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 metrics, 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 State Timeline 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.7.4 Example Scenarios

Equipment on/off history. A pump's run state (0 = Off, 1 = Running) is mapped to gray and green using Value Mappings. The state timeline over a 24-hour period shows exactly when the pump was running and how long each run lasted.

Multi-metric side-by-side comparison. Voltage (V), Current (A), and Power (W) are added to the same panel as three stacked bands. Power remains constant and is automatically merged into a single segment, making it easy to contrast against the frequently changing Voltage and Current bands.

Alarm active/inactive history. Multiple alarm signals are stacked as separate bands. A maintenance engineer reviews a week of history to identify which alarms were most frequently active and whether they correlate in time.