Power chart range brush selection

Hi all,
I'm trying to set up the power chart, so far everything is ok, it's a very powerful tool for data analysis!
One thing I can't understand (maybe it's not possible) is when I set the Range Brush, in the bottom menu I see the start/end date of the selection, ok, but is it not possible to display the duration in HH:mm:ss of the selection?


I posted a second photo to show what I'm talking about (it comes from another scada using another object).

Many thanks.

Hey eMax,

This should be possible, you might not have found the correct property yet.

The User Manual page for the component is massive, in this case it is easier to find what you're looking for by testing in the Designer. In the Designer, in Preview Mode, if you create a range selection you can look inside the props at the interaction.rangeBrush.values array. Here you will find objects that represent the range brush, including a start and end, so you can then calculate the time range value.

More information on the interaction properties is in a specific table on that User Manual page: Perspective - Power Chart | Ignition User Manual

For displaying the range, you can then format the time value using an expression binding and some sort of label. If you use multiple ranges you may need a more dynamic system like a flex repeater of labels.

1 Like

Ciao KVane.
I tried to use the custom property: " interaction.rangeBrush.values" as you suggested. It works! Thanks.
The only thing I don't "like so much" is that I have to put the "range value" label outside the power chart object. But that's fine.
Thanks again
eMax

2 Likes