How to change bar gauge display bar color?

Discuss issues and ideas you have to configuring displays with PowerVision
nms
Posts: 14
Joined: Tue Jul 25, 2017 8:01 am

How to change bar gauge display bar color?

Post by nms » Tue Oct 24, 2017 5:56 am

Hello,

I've been doing the bar color change with using 2 bars till now. However it can't meet some of the requirements.

What I'm trying to do is, showing the bar fill with red color till 50% after that, the color should change to blue. I've been using identical bars on top of each other, displaying the same data till the 50% mark. When it is reached, red colored bar is hidden and the other one is shown. However, the animation is cut in middle when the data jumps over or down at that mark since i'm using 0,1 smoothing for the bar. (For example: data is sent over CAN so when the screen turns on it may be at 80%, I want it to start at 0 and fill up to 50% in red color then switch to blue till 80%.)

Using the animatecolor action changes the color of the ticks of the bar gauge, not the data that fills the bar.

Is there a way to accomplish this? I hope I have stated the issue clearly...

Thanks,

Mert
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: How to change bar gauge display bar color?

Post by boyce » Tue Oct 24, 2017 3:20 pm

I don't see a way to control the color of the bar gauge with the AnimateColor action. To do what you describe could be done with the stacked bar gauges but by controlling the value instead of displaying the CAN parameter. You would calculate the value to display and set the visibility for the desired bar color. I don't think it would be as smooth as a bar gauge with smoothing but you could try it.
Boyce Schrack
Enovation Controls
nms
Posts: 14
Joined: Tue Jul 25, 2017 8:01 am

Re: How to change bar gauge display bar color?

Post by nms » Wed Oct 25, 2017 1:42 am

Thanks Boyce,

I'll give it a try.