11-09-2011 10:18 AM
Hey All,
I am having trouble figuring out how to correctly plot a bargraph with an array of string labels. I found this forum from almost four years ago now and wonder if there were any other ways that have been created for making bar graphs. I'm using labview 9 and have tried to implement the one solution by Ben in the previous forum however i cannot get that x to appear in the bundle by name in the second for loop. I have triple checked the code and it seems to match but that part. I also have tried the tank solution but i have too many plots for that to be even close to being read.
Thanks,
Triff
11-09-2011 03:50 PM
@TriffWhiff2 wrote:
Hey All,
I also have tried the tank solution but i have too many plots for that to be even close to being read.
I take it you need
1) X axis Labels
2) "Skinny" bars so that you can fit lots of data.
Keep in mind that the tanks and slide fills are easily resized or customized. How many plots do you have? If it's a manageable number, the "tank solution" is still viable. Look how tiny this example is, made from sliders. Could be even smaller, of course.
11-09-2011 05:48 PM
I have well over 100 plots to make
11-10-2011 11:52 AM
It still seems like a cluster of sliders would work. Set the Label to Counterclockwise for typical bar graph appearance.
I have attached a VI, saved to version 2009, that contains 100 sliders as a bar graph (in a cluster) and a method to change the names of each "Bar". Is something like this close?
Download both VI's. Run "Main".
11-10-2011 02:29 PM - edited 11-10-2011 02:30 PM
This solution does work but i have reorganized my program to give me an array of numbers instead of string to use as labels. Unfortunetly this also makes for my plots to make in the thousands in some cases. The reason I chnaged was just to assign values to a chart using property nodes for the x axis. However x-scale marker values does not like multiple instances of the same value. For instance i have multiple number 1's due to what i'm monitoring happened multiple times in frame 1 and so on tto frame 80. The overall goal is to be able to look at the instances in all the frame's together and be able to look at what took the longest (i'm graphing time on the y scale) with a visual representation of the entire amount of frames. So i guess my question now is how do i scale the x-axis to the values that i want which is just a 1d array of numbers.
Here is a front panel picture of what i need at the x axis(frames of cmd) and the value for the bars (cmd time).
-TRiff
11-10-2011 02:51 PM
11-10-2011 03:43 PM
And while we continue to find workarounds, feel free to vote for this idea! 😄