Dan Bookwalter Posted March 3, 2007 Report Share Posted March 3, 2007 I have to generate some bar graphs that have text as the markers and they have to be vertically aligned under each bar.... a quick check of the graphs i didnt see an easy way to do it. i am looking into using a picture control.... is there an easier/better way ? i hope i am overlooking something... Dan Quote Link to comment
Yair Posted March 3, 2007 Report Share Posted March 3, 2007 Quick thoughts - there is a bar graph example in the example finder, but that has constant labels. You can have your own labels by using cursors and setting the cursor names to be visible or by overlaying an array over the graph and coloring it transparent. You can then control the width and number of elements shown, but the first method sounds nicer. Quote Link to comment
Grampa_of_Oliva_n_Eden Posted March 3, 2007 Report Share Posted March 3, 2007 I posted an example that may help you on the NI Forum in this thread. http://forums.ni.com/ni/board/message?boar...=205891#M205891 It uses a picture for the labels and lets the graph do the rest of the work. http://forums.lavag.org/index.php?act=attach&type=post&id=5096 Ben Quote Link to comment
James N Posted March 3, 2007 Report Share Posted March 3, 2007 Check out the example of how to use annotations on a graph. C:\Program Files\National Instruments\LabVIEW 8.2\examples\general\graphs\Programmatically Annotate a Graph.vi I thought this was pretty cool when I first learned of it. -James Quote Link to comment
Dan Bookwalter Posted March 3, 2007 Author Report Share Posted March 3, 2007 QUOTE(James N @ Mar 2 2007, 08:38 AM) Check out the example of how to use annotations on a graph.C:\Program Files\National Instruments\LabVIEW 8.2\examples\general\graphs\Programmatically Annotate a Graph.vi I thought this was pretty cool when I first learned of it. -James Ben , James , Yan Thanks for the input , after looking into this a little more i have decided to just run with the picture control as i also need to change the bar colors depending on the value... Have a Great Weekend Dan Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.