Skip to content

Bars per period

A tag pen shown as bars can have one bar per period: the sum, average, median, minimum, maximum or count of the values stored in each period.

Average flow per hour over the last 24 hours

  1. Open the pen's settings.
  2. Set Show as to Bars.
  3. In Bars, set One bar per: a number and a unit (minutes, hours, days, weeks or months). Automatic gives a bar per point as the chart reads the pen.
  4. Pick what Each bar is.

The Bars settings of a pen

  • Average is right for a rate such as m³/h or kg/min. For a pen whose unit is a rate, the average comes first in the list.
  • Sum adds the values as stored. That is right for amounts logged per event, such as a count or a batch weight. For a rate it is not a total: a historian stores a rate more often when it changes faster, so the sum grows with how often it was stored. The chart calls it "sum of stored values" and shows it without a unit.
  • Count is the number of stored values, without a unit.

Periods follow the chart's time zone by a fixed rule, so panning or zooming never changes what a finished bar holds. Hours start again at every midnight; days run from midnight to midnight, weeks from Monday, months from the first.

  • The period that has not ended yet is drawn lighter, with a dashed edge.
  • A bar that the view cuts at the left or right edge fades towards that edge.
  • On a live chart the bars are read again every 30 seconds.
  • "These bars may include bad-quality values": the range held too many values to read one by one (more than 2,000,000 per pen), so the bars come from the historian's own aggregates.
  • "Some periods have no bar": the historian gave no usable aggregate for part of a period.

The exact rules, per historian, are in the bars reference.

A pen shown as bars per period is compared bar for bar: the earlier period's bars are drawn as outlines over the pen's own bars. See Comparing periods.