LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create a Percent Fill Bar/Tank/Indicator?

Hi everyone!

Let's say I have three numbers. 30, 20, and 50. Is there a way to create an indicator that will convert this to seperate percentages and sort it so it looks sort of like a pie graph but horizontal/vertical (like the tank). I tried using the tank but Adding serpeate sliders , the data covers each other. Based on the given example, the 30 should be 3/10, 20 should be 2/10 and the 50 should be 5/10 of the whole tank. I hope you guys get what I mean.
0 Kudos
Message 1 of 4
(3,234 Views)
The easiest way is to simply add the sum of the previous sliders to the current slider as show in the attached simple example. Modify as needed.
Message 2 of 4
(3,225 Views)
How about a barchart where each bar is a different color? If that would work, I can post code to do it...

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 4
(3,220 Views)
Ahhh... Now I see what he meant. Sort of a stacked bar chart - with only one bar.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 4
(3,216 Views)