From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-23-2013 01:38 PM
Is there a way to build this simple chart in labview that I did in Excel? I need to have many x axis labels and there could be from 5 to 100 of them depending on the data set.
09-24-2013 12:10 PM - edited 09-24-2013 12:10 PM
Hi id,
Here is a link to an example VI that uses nested loops to turn a table into a bar graph.
https://decibel.ni.com/content/docs/DOC-2241
Hope this helps.
Regards,
Anna L
09-24-2013 01:49 PM
Thanks the nested loop example helps a little but it does not create a "stacked" bar graph but rather a grouped bar graph. I would probably have to sort and overlap the bars in order of magnitude for the thing to work.
The other issue is that the caetgory names on the x axis that I need to use are long and cannot fit horizontally so I need them to be vertical. The 3D bar charts have this ability with their valuepair properties but I dont see away with the old 2D graphs....
09-25-2013 10:16 AM
Hi id,
Thank you for your response. I hope you are doing well.
There is an example in the LabVIEW Example Finder (Help>>Find Examples..). It is titled, Stacked Bar Graph. You can search for it if you switch tabs in the Example Finder window. This should help you create a stacked bar graph. To help you with your veritcal axis labels, here is a knowledge base link that details the process:
http://digital.ni.com/public.nsf/allkb/1F7C1B089E45908E86256C8C0051894A?OpenDocument
Let me know if these examples help.
Best regards,
Anna L
09-25-2013 10:41 AM
Thanks Anna but the means of putting labels vertically is kind of "cheesy" as it overlays controls over the x axis values. This approach only works for a graph that you dont zoom or change the x axis range on for interactive viewing. I tried doing it with a picture control overlapping and it gets pretty complex. NI definitely needs to add this feature.
09-26-2013 08:51 AM - edited 09-26-2013 08:51 AM
Hi id,
Thanks for your response. You can definitely post the vertical axis labels as an idea in the LabVIEW Idea Exchange. Here's the link if you are interested:
http://forums.ni.com/t5/LabVIEW-Idea-Exchange/idb-p/labviewideas
Best Regards,
Anna L
09-26-2013 09:23 AM
Anna, do you know of an Active X or .NET control that can be used instead to allow this feature?
09-27-2013 01:38 PM
Hello id,
I don't believe there is an Active X or .NET control that can be used for the feature. If you are interested in trying it in CVI, there is a way to manipulate your axis labels. There is more description of the process in this Knowledge Base article here:
How Can I Customize the X-Axis Labels on My CVI Graph So That They show Vertical Text Labels? http://digital.ni.com/public.nsf/allkb/C3637DA680F5407486256C8C0058B7DA?OpenDocument
Regards,
Anna L