LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

clustered bar graph

Solved!
Go to solution

I would like to create a clustered bar graph. In excell it is really easy, but I can not find any simular graphs in lab view.

I will give a simple example and an example how the end result should look like.

 

Download All
0 Kudos
Message 1 of 4
(3,040 Views)

It's just a standard graph/chart, with a different presentation.  if you have your graph => plot legend.  click on the plot line in the legend and there you can select a different presentation of the graph.  Easyyyyy 😉

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
Message 2 of 4
(3,038 Views)

Thanks for your help, but the values are on top of each other instead of clustered. Do you have a solution for me?

I attached a vi. THis shows how I make the graph right now (I am quite new, so maybe a do the graph building not logical or OK).

 

Best regards,

 

Rens

0 Kudos
Message 3 of 4
(3,027 Views)
Solution
Accepted by topic author RvG

Dear Rens,

 

to create a bin is a little bit more complicated; we need to add some extra points on the X axis for the second plot. For example if we plot a bar on every x value = 5 (0,5,10,15 etc) we need to add some extra points for the second plot; 0, 2.5, 5, 7.5, 10, 12.5; this is done with the for loop in the top.

For the y axis we need to add a 'placeholder' value (in this case NaN) for every value after the Y value, so we get 1, NaN, 2, NaN, 3, NaN, 4, NaN. This is done by the second for loop. For the second plot we need to add a NaN before every value; NaN, 5, NaN, 6, NaN, 7, NaN, 8 etc.

 

Hope this brings you further,

 

Best regards,

Martijn S
Applications Engineer
NI Netherlands
Message 4 of 4
(2,995 Views)