LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Plot bar graph with different colors

I want to create a vertical bar graph with three different bars, each a different color.  As best I can tell, if I use PlotY I have to pass all three values in at the same time which means they all get plotted in the same color.  I thought about using PlotRectangle to draw each bar, but it seems like there should be an easier way without having to calculate all the coordinates for each bar.  Any ideas?

0 Kudos
Message 1 of 2
(1,140 Views)

Hi,

you could either draw individual rectangles as you suggested or have three separate calls to PlotY() with adjusted data sets.

0 Kudos
Message 2 of 2
(1,113 Views)