LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plot colour in a bar graph

Hi,
Thank you for your expertise. I have been unsuccessful trying to assign specific colours to individual plots on a bar graph. Assigning an active plot and changing the plot.colour with a property node does not seem to work as it does in a normal line graph/chart. No change occurs. I have a need to assign red, yellow and green colours to 127 bars (representing pieces of hardware).
Thank you for your help.
Nathan
0 Kudos
Message 1 of 3
(2,608 Views)
> Hi,
> Thank you for your expertise. I have been unsuccessful trying to
> assign specific colours to individual plots on a bar graph. Assigning
> an active plot and changing the plot.colour with a property node does
> not seem to work as it does in a normal line graph/chart. No change
> occurs. I have a need to assign red, yellow and green colours to 127
> bars (representing pieces of hardware).
> Thank you for your help.


If wired, the error output should indicate that the Active Plot value is
out of range. You will need to either wire plot data that allocates the
plots or grow the legend before you can select the plot as active.

Greg McKaskle
Message 2 of 3
(2,608 Views)
Thank you Greg. I've experimented with your suggestion and have found that you are correct. The only problem that I am encountering now that my plots are initialized is that the colours will not change. Using a waveform graph results in no change (I've modified an example called "bar graph.vi"). Using an XY Graph, colour change to one plot affects the colour to all plots.
Any thoughts?
Nathan
PS. I've attached an example.
0 Kudos
Message 3 of 3
(2,608 Views)