03-28-2011 02:38 AM
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.
Solved! Go to Solution.
03-28-2011 02:50 AM
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 😉
03-28-2011 03:12 AM
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
03-29-2011 02:26 AM
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,