Skip to content

Chart and Datatable

Chart and Datatable are the two animation types that put a whole component in place of an SVG object. Both bind to a rect and fill the area that rectangle occupies.

A time-series chart. You add variables as series and show live or historical data.

The chart is configured through a form. What you fill in is stored in the element’s props, and the expression that runs is generated from it — you do not write the expression by hand. Changing a series therefore means changing a field on the form, not editing chart code.

Each series corresponds to one variable.

FieldDescription
LabelThe name to display
AxisWhich Y axis to draw on — the chart supports two
Alarm (optional)An alarm bound to the series; its levels are drawn as lines
Line widthLine thickness
FillWhether to fill below the line (an area chart)
Min / MaxThe series’ scale limits
Line styleThe line’s style
SmoothingHow much the line is smoothed
Points (radius)The size of the point markers
Fill opacityThe fill’s opacity
UnitUnit

A new series takes its colour in turn from a palette of eight, so series stay distinguishable without picking colours by hand.

FieldDescription
TitleThe chart’s title
ThemeLight or dark
Value decimalsDecimal places shown on values
Legend positionWhere the legend sits
Grid colorGrid colour
Border · Corner radiusFrame thickness and corner rounding
CSV separatorThe separator used on export
PDF titleThe title on the PDF output

Axis titles, logarithmic scale, starting at zero and tick counts are set per Y axis; the X axis takes a label format and a tick count of its own.

The chart works in two modes, and which one it opens in comes from its configuration:

ModeWhat it shows
LiveCurrent values inside a sliding window — the window’s width and the sampling period are both set
HistoryA fixed range in the past

By default the chart opens live with a window of about 40 seconds; the default history range is one hour.

The chart carries a toolbar the operator can use at run time. Which buttons appear is chosen in the configuration:

ButtonWhat it does
ConfigOpens the appearance settings to the operator
FilterFilters which series or range is shown
ResetReturns the view to where it started
GuideShows a usage hint
ExportExports the data as CSV and the picture as PDF

If you want a screen to stay view-only for operators, turning the toolbar buttons off is the simplest way to fix the chart in place.

When an alarm is bound to a series, that alarm’s HH / H / L / LL levels are drawn as horizontal lines, and each level can be turned on or off separately. Independently of those you can define reference lines of your own — a contractual limit, a target value.

Places a table on the screen. You choose where its rows come from.

SourceWhat it shows
Variables (live)The current values of the variables you pick
Setpoint PresetsStored sets of setpoints (a recipe)
SQL queryThe result of a query written against a datasource
Static rowsFixed rows entered by hand

With the Variables (live) source, each variable can be marked Editable individually. A marked row can be changed by the operator in the table and the value is written to the variable — so the table is not only a display, it can serve as an input surface.

Title, theme, background (which can be made transparent to blend with the page), font and font size, border, corner radius, padding and the text shown when there is no data are all configurable.

The table refreshes on its own period with Auto refresh, given in seconds. There is also a preview option for seeing the table populated while designing.

Both are offered on a rect alone. In the design you set aside the area the component will occupy by drawing a rectangle, and bind to that rectangle.

  • Element Editor — the binding form and the type list
  • Animation — building the screen
  • Trends — a trend screen in its own right, not bound to an animation