Chart props
| Prop | Default | Meaning |
|---|---|---|
configuration |
default |
Name of the gateway configuration. |
chartId |
"" |
Saved chart to open. Bind to the page parameter of /trends/:chartId. |
chartUrl |
/trends/{chartId} |
Page URL of a saved chart in this project, {chartId} where its id goes. The path: of the charts on a page, only the first full, editable one with such a chartUrl that keeps its urlKey owns it: Open, Save, New and Delete move the path to the chart's page (browser Back and Forward follow), and a saved chart's page opens that chart. Any other chart, also one with chartUrl empty, leaves the path alone and opens the chart its own chartId names. The fragment is apart from that: a chart that keeps its urlKey (urlState on) keeps its state there, and one that does not own the path also the saved chart on screen, so a reload and a copied link (to the page's own address) bring that chart back with its state, whatever chartUrl says. With urlState off and chartUrl empty, a saved chart cannot be linked or kept over a reload. |
newChartUrl |
/trends |
Page URL of a new chart (after New and Delete). |
urlState |
true |
Keep the full chart in the URL after #pcu=. |
timeZone |
"" |
IANA zone such as Europe/Brussels for the axis, x-trace and export. Empty: the browser's zone. |
initial |
8 h, live | The chart shown without a saved chart or link: pens ([{path, name?, color?, unit?, format?, limits?}], limits as in the chart state, see Limits; name, unit and format are text and color a colour, as in a link, else left out), span (a number with s, m, h, d, w, M or mo for a month of 30 days, or y for 365 days: 15m, 8h, 7d, 1M), live, stacked. |
boundPens |
[] |
Pens whose data you bind (see below). |
annotations |
[] |
Bound annotations: [{time, endTime?, text, color?}]. The chart shows the newest 1,000 touching its range ("Notes: more not shown" when there are more), each text cut at 1,000 characters; color is a colour as a pen's (#rgb, #rgba, #rrggbb, #rrggbbaa, rgb(), rgba() or a colour's name), else the default. |
compareTo |
[] |
Earlier starts to compare with, such as the starts of the last batches: epoch milliseconds or ISO 8601 text (a date, midnight UTC, or a date and time with Z or an offset such as +01:00, +0100 or +01; a date and time without one, and other text, is ignored). Each is a comparison of the chart's span from that time, lined up with the chart's start (see Comparisons). At most 4 comparisons in all, with the ones picked on the chart. |
panel |
open, 320 px | The side panel: open, width. |
readOnly |
false |
Hide the chart actions and the tag browser: a fixed trend for an overview screen. A layout choice, not a permission: what a user may read and save is decided by the configuration. |
display |
full |
clean: only the chart, for a dashboard. No toolbar, side panel or range controls; the range comes from initial (or the saved chart in chartId); hovering shows the values. Implies readOnly and no URL state. |
legend |
true |
In the clean display: show the legend under the plot. |
quickRanges |
the 12 below | The time picker's quick ranges: [{label, from, to}], from and to as in the time picker. [] hides the list (see Quick ranges). |
range |
{} |
A range the chart follows: from and to as in the time picker (now-8h, now/d, 2026-11-26 08:00), in timeZone when it has one (else the chart's, so a change of the chart's timeZone moves it), or start and end in epoch ms. Each change moves the chart there; from and to relative to now keep following the clock. Bind it to a Time Range component's value (see below). Empty: the chart keeps its own range. |
urlKey |
pcu |
This chart's entry in the URL fragment (#pcu=...). On a page with several charts, give each its own: of two charts with the same key only the first keeps it, and the other stays out of the URL (the Designer warns on it). Letters, digits, _ and -, at most 40; other characters are dropped (so line 1 and line1 are the same key). |
syncGroup |
"" |
Charts on a page with the same group share their time (see Synchronised charts). Empty: not synchronised. |
output |
Written by the component: start, end, dataStart (epoch ms), live, chartId, title, changed. Bind query parameters of bound pens to output.dataStart and output.end (see Following the visible range). Not written in the Designer, which saves every prop a component holds with the view. |
Events: onChartSaved ({chartId, title}) and onChartDeleted ({chartId}).
Quick ranges
Section titled “Quick ranges”quickRanges lists the ranges the time picker offers in one click, in its order.
A new component starts with these twelve, written out in its props so you can
change, reorder or remove them:
[ { "label": "Last 15 minutes", "from": "now-15m", "to": "now" }, { "label": "Last 1 hour", "from": "now-1h", "to": "now" }, { "label": "Last 8 hours", "from": "now-8h", "to": "now" }, { "label": "Last 24 hours", "from": "now-24h", "to": "now" }, { "label": "Last 7 days", "from": "now-7d", "to": "now" }, { "label": "Last 30 days", "from": "now-30d", "to": "now" }, { "label": "Today so far", "from": "now/d", "to": "now" }, { "label": "Yesterday", "from": "now-1d/d", "to": "now-1d/d" }, { "label": "This week so far", "from": "now/w", "to": "now" }, { "label": "Previous week", "from": "now-1w/w", "to": "now-1w/w" }, { "label": "This month so far", "from": "now/M", "to": "now" }, { "label": "Previous month", "from": "now-1M/M", "to": "now-1M/M" }]from and to take the time picker's expressions: now with offsets (s, m,
h, d, w, M, y), a rounding to the start of a unit (now/d is today
00:00; as to, the end of today), offsets after the rounding, or an absolute
time. A to of now follows the clock. Weeks start on Monday, and rounding
works in the chart's time zone. Ranges of your own, for example shifts:
{ "label": "Early shift today", "from": "now/d+6h", "to": "now/d+14h" },{ "label": "Production day, yesterday", "from": "now-1d/d+6h", "to": "now/d+6h" }The range button then says "Early shift today" when that range is shown. An
entry without a label is named from its range. An entry that does not read
as a range (now-8x), or that is longer than the configuration's maximum
range, stays in the list but cannot be picked: it shows a warning sign and the
reason in its tooltip, and the browser console names the entries that do not
read. With more than 12 entries the list gets a search field. The prop is
read when it changes, so it can be bound.
Comparisons
Section titled “Comparisons”View > Compare with (or Chart settings) has the presets (1 day, 1 week or 1 year earlier) and
Other times…, where you add earlier start times, typed as in the time picker
(2026-11-20 08:00, now-3d) or picked on a calendar. A chart compares with
at most four periods at once, the preset counting as one. Each comparison
reads the chart's span from its start, and its start lines up with the chart's
start. A time less than a second before the chart's start (or not before it), or
a century or more before it, is refused, as a link would not keep it.
A typed time is kept as its distance from the chart's start, so a live chart keeps comparing with the same stretch as it moves, and zoom and pan move the comparison along. Saved charts and links keep the comparisons. A pen whose earlier data did not come through this time (the gateway busy, the historian not answering in time) is said once and read again on its own after 10 s, then up to a minute.
A pen shown as bars per period is compared with the bars of the earlier period, read with the same period and value (a sum per hour a day earlier) and drawn as outlines in the comparison's dash over the pen's own bars. The x-trace says the earlier bar that holds the time, its tooltip that bar's own period ("1 day earlier, Sat 28 Nov 19:00 to 20:00"). A pen whose bars, or earlier bars, did not come through this time (the gateway busy, no answer in time) is read again on its own after 10 s, then up to a minute, also on a fixed range whose bars have all settled; the other pens' bars stay as they came.
compareTo does the same from a binding, for example the starts of earlier
batches from a named query (here 20 Nov 08:00 and 23 Nov 14:30, Brussels time):
"compareTo": ["2026-11-20T08:00:00+01:00", 1795440600000]A date and time names its zone (Z or an offset): without one it would be another
instant in each browser's time zone, so 2026-11-20T08:00:00 is ignored. Its times
are lined up with the chart's start when the prop changes and when a
chart opens. They are not saved with a chart (the view supplies them), and the
dialog lists them as "from the view".
Types and defaults
Section titled “Types and defaults”As the Designer gets them from the component's props schema.
| Prop | Type | Default |
|---|---|---|
configuration |
string | "default" |
chartId |
string | "" |
chartUrl |
string | "/trends/{chartId}" |
newChartUrl |
string | "/trends" |
urlState |
boolean | true |
urlKey |
string | "pcu" |
syncGroup |
string | "" |
timeZone |
string | "" |
initial |
object | {"pens":[],"span":"8h","live":true,"stacked":false} |
boundPens |
array | [] |
annotations |
array | [] |
compareTo |
array | [] |
panel |
object | {"open":true,"width":320} |
readOnly |
boolean | false |
display |
string | "full" |
legend |
boolean | true |
range |
object | {} |
quickRanges |
array | the 12 built-in quick ranges |
output |
object | {"start":0,"end":0,"dataStart":0,"live":true,"chartId":"","title":"","changed":false} |
Copied from the section "Component props" of the README when the site is built; the types and defaults from common/src/main/resources/powerchartultra.props.json. Source: README.md.