cancel
Showing results for 
Search instead for 
Did you mean: 

how to program bar plot color with the property node

SOLVED
DavidWei
Member
Solved!

how to program bar plot color with the property node

Message contains an attachment

I want to make the bar plot color can follow the group number. I use the property node to program the plot color. but it's very strange. from the attached example, we can see the color of the line plot can be programmed. while the color of the bar plot doesn't. I believe there must be something wrong. but I cannot figure it out. Anybody here can help me to debug this problem? thanks in advance!

3 REPLIES 3
altenbach
Knight of NI
Solution

Re: how to program bar plot color with the property node

Message contains an image

You need to change the fill color instead:

 

altenbach_0-1688482960178.png

Oh, and btw, your inner while loop is pure Rube Goldberg. See if you can simplify it!

altenbach
Knight of NI
Solution

Re: how to program bar plot color with the property node

Message contains an image

@altenbach wrote:

Oh, and btw, your inner while loop is pure Rube Goldberg. See if you can simplify it!


One possibility....

 

altenbach_1-1688483843207.png

 

 

(The error should be wired to avoid auto error handling, but there are other ways, of course.)

 

DavidWei
Member

Re: how to program bar plot color with the property node

nice! thank you very much!