LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plot a bar graph of 1D array with different color of each bar?

Any one has example for a graph of 1 D array ( exp: [1,2,6,4,6]  with different color of each bar? I want to make a bar graph of 1 D array, exp :if the value >=5, the bar is red, value< 5 is blue.
0 Kudos
Message 1 of 6
(5,659 Views)
I can make it with XY graph. Any one can make it with wave graph?
0 Kudos
Message 2 of 6
(5,657 Views)
I send the simple graph! Can any one make condition: if y>4 : bar shows red, y<3 :bar shows green, 3<y<4 bars show blue.?
0 Kudos
Message 3 of 6
(5,621 Views)
Use three graphs, one for each color. Split the array according to the limits and put NaN in the graph elements you do not want displayed. In graphs NaN elements do not display.

I have attached a simple example (LV8.2). I think the array processing could be more efficient, but this may get you started.

Lynn
Message 4 of 6
(5,607 Views)
0 Kudos
Message 5 of 6
(5,596 Views)
This was also answered (I think) in this thread.
Jeff


Using Labview 7 Express
0 Kudos
Message 6 of 6
(5,592 Views)