Skip to main content
Version: 1.0.4

HMI Trend

A high-performance-HMI embedded trend: the Y-axis is the operating range, a band shows the desired range, dashed lines mark the alarm limits, and the trace stays neutral until it leaves the desired band. An operator reads deviation at a glance without reading numbers.

The HMI Trend component as it renders with its default settings.The HMI Trend component as it renders with its default settings.

Reach for it when you need:

  • The trend beside a controlled value on a process screen
  • Any place where "is this normal?" matters more than "what is the value?"

Component name: HmiTrendChart · Category: Chart

In the palette: HP HMI embedded trend: operating-range Y-axis, desired-range band + dashed alarm limits, neutral line that colours only on excursion

Properties

Any property can be bound to a tag, another component's property, or a query.

PropertyTypeDefaultDescription
tagPathtag""Historized tag to trend — pick from the selector (history-enabled tags only). When set, pulls the trailing window of history; leave empty to use the bound data.
windowenum3600Trailing time window of history to draw (only used when tagPath is set). Options: 300 · 900 · 3600 · 21600 · 43200 · 86400.
dataanyFallback series values when no tagPath is bound — bind to a named query, or leave blank for the sample trend. Auto-decimated to the widget width.
yMinnumber""Fixed Y minimum (blank = auto operating-range).
yMaxnumber""Fixed Y maximum (blank = auto operating-range).
desiredLonumber73Bottom of the desired-range back-band.
desiredHinumber77
loAlarmnumber72Low alarm (L) — dashed warn line.
hiAlarmnumber78
loloAlarmnumber71Low-low alarm (LL) — dashed crit line.
hihiAlarmnumber79
unitstring%
lineColorcolor#3d6fa5Trend line — a muted, neutral blue (HP HMI: never a bright/alarm hue; emphasis is by thickness, not colour). Colours to warn/crit only on excursion.
lineWidthnumber1.75
warnColorcolor#f57c00
critColorcolor#d32f2f
bandColorcolor#b8daffDesired-range back-band — solid pale blue, SHARED with the MAI/Sparkline (green is reserved: it conditions "all clear").
showBandbooleantrue
showLimitLinesbooleantrue
showGridbooleantrue
gridColsnumber4Interior vertical time divisions.
showScalebooleantrueShow the Y-axis min / max labels.
scaleFontSizenumber10
decimalsnumber1Fraction digits shown. 1.0.4
scaleColorcolorvar(--widget-label)
strokeColorcolorcurrentColorAxis frame + gridline colour. Default currentColor matches the drawn SVG line colour (light + dark).
showWindowLabelbooleantrueShow the trailing-window label (e.g. "12 h"). Tag-history mode only.
windowLabelColorcolorvar(--widget-label)
windowLabelSizenumber13
labelstringTrend
enableLabelbooleantrue
labelColorcolorvar(--widget-label)
labelSizenumber11
stylestyle{}Custom CSS properties

Events

Attach event actions to these in the Event Manager.

EventLabelGroupPayload
clickClickMouseThe DOM event.
dblclickDouble clickMouseThe DOM event.
contextmenuRight clickMouseThe DOM event.
mouseenterMouse enterMouseThe DOM event.
mouseleaveMouse leaveMouseThe DOM event.
dataClickData clickChartThe clicked datum, under point.
dataDblClickData double clickChartThe clicked datum, under point.
legendSelectLegend toggleChartThe toggled series.
Right-click behaves differently in the Designer

contextmenu fires your configured actions at runtime only — in LiveView and in preview. On the Designer canvas the right-click is captured to open the Event Manager, so testing it there will not run your actions. Test right-click in preview.

Notes

The neutral-until-excursion colouring is the point of this component. Do not override it to colour by series — that reintroduces exactly the visual noise the HP HMI convention removes.

The readout beside the trace shows one decimal place by default; decimals (0–6) sets how many. It formats through the same helper as the Gauge, the Tank and the Moving Analog Indicator, so a screen showing one tag in several of them cannot show it to different precision in each.

See also