[BUG] Power Chart Tags Fail when aggregateMode = Average

1. The behavior you unexpectedly encountered - The Perspective Power Chart displays no pen data in the Chart or in the Pen Control panel if any of the configured pens have an aggregateMode = Average and that pen’s value is = 0 for the duration of the sample.

2. The behavior you were expecting to see - Pen data in Chart and the Pen Control panel.

3. A list of the steps you took that exposed the issue - I had a fresh Power Chart, I populated the pens parameter using a script that built the pens array. The Power Chart was not showing any pen data on the Chart or in the Pen Control panel. However, the configured pens could be used in the Chart Settings panel. Through much process of elimination, I noticed that the “aggregateMode = Average” parameter was breaking the Power Chart, but only when a pen was configured that had a zero value for the duration of the sample.

4. A list of helpful information about the situation you were in

  • The Ignition version number: 8.1.2 (b2021020311)
  • The browser and version number: Chrome Version 84.0.4147.125 (Official Build) (64-bit)
  • The Module name and version number: Perspective 2.1.2 (b2021020311)