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.

Set it up
Section titled “Set it up”- Open the pen's settings.
- Set Show as to Bars.
- 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.
- Pick what Each bar is.

Sum or average?
Section titled “Sum or average?”- 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.
How periods are cut
Section titled “How periods are cut”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.
When the legend or x-trace warns
Section titled “When the legend or x-trace warns”- "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.
Comparing bars
Section titled “Comparing bars”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.