I’ll describe what I’m trying to do and the problem I’m having:
I am creating an embedded view in Perspective which contains a gauge component. I’m doing this because I want to be able to reuse this view multiple times on the page.
I’m passing in an integer tagpath to the embedded view. The value of the gauge uses an indirect tag binding on this tagpath. This works fine and the needle on the gauge moves as expected when the tagvalue changes. Very standard stuff.
I want the outerAxis.maxValue property to dynamically change to whatever the maximum value of the tag is in the last 24 hours. To achieve this I’ve used a tag history binding on the outerAxis.maxValue property and I have confirmed this works correctly because I’ve bound a label to this property so I can see the value on the page when embedding the view. If I increase the tag value to a higher maximum, this does indeed change the value of the outerAxis.maxValue property.
The issue I’m having is that the appearance of the gauge doesn’t refresh when the outerAxis.maxValue property does. If I open the embedded view in the designer, open the outerAxis.maxValue binding and click apply, this forces the appearance of the gauge to refresh to the new value, but I want this to happen dynamically during runtime.
Does anyone know how to force the gauge to re-evaluate its appearance?
The version of Ignition I am using is 8.1.4 (b2021040109)