Yean95 Posted April 1, 2021 Report Share Posted April 1, 2021 Hello! I'm having trouble to do this horizontal grouped stacked bar charts in LabVIEW as shown in first picture above and I tried to search online but I can't find any solutions for this. As of now, I have successfully did the horizontal stacked bar charts for one category only (TestingLeadTime, SubmissionLeadTime & ApproveLeadTime), but i can't do it for grouped category. The second picture is my data while below is my LabVIEW coding and also the current result. Anyone knows how to get both my LeadTime and ActualTime as a grouped stacked bar charts? Thank you so much in advanced. Quote Link to comment
Lipko Posted April 1, 2021 Report Share Posted April 1, 2021 (edited) It's not entirely clear what you are trying to do, but I don't see anything in the code that makes sure that the Y coordinates of the two sub-groups are different. I mean the ActualXxxxx bars are simply obscured by the other stack. When bulding the ActualXxxxx stack, add some offset to the i iterator inside the last loop to offset Y a bit. You have to fiddle around the other stack too probably, it will by quite tricky to fine-tune the properties to get the graph you want, but should be doable if the number of stacks and the size of the graph is fixed. I think... For these types of diagrams I usually go for the normal "fill to plot" method with a normal line diagram (not a bar plot!), I build both the top and bottom line of the bar. This way I have full control of the sizes of the plots. Edited April 1, 2021 by Lipko Quote Link to comment
MikaelH Posted April 7, 2021 Report Share Posted April 7, 2021 You can do something like this: Horisontal BarChart.vi Quote Link to comment
Yean95 Posted April 7, 2021 Author Report Share Posted April 7, 2021 Hello MikaelH, Could you post the screenshot of the labview code? Cause I couldn't open your file as my labview version is older than yours. Thank you so much for your help. 12 minutes ago, MikaelH said: You can do something like this: Horisontal BarChart.vi 57.91 kB · 0 downloads Quote Link to comment
MikaelH Posted April 7, 2021 Report Share Posted April 7, 2021 Is 2016 okay? Horisontal BarChart-2016.vi Quote Link to comment
Yean95 Posted April 7, 2021 Author Report Share Posted April 7, 2021 cannot also, mine is 2015 version. 33 minutes ago, MikaelH said: Is 2016 okay? Horisontal BarChart-2016.vi 227.47 kB · 0 downloads Quote Link to comment
MikaelH Posted April 7, 2021 Report Share Posted April 7, 2021 So 2014 should be good then 🙂 Maybe it's time to think about upgrading 😉 2020SP1 is Awesome, especially now with Interface support 🙂 Horisontal BarChart-2014.vi Quote Link to comment
Lipko Posted April 7, 2021 Report Share Posted April 7, 2021 (edited) Hmm, it looks totally different on my system. Nevermind, the disabled structures have to be removed (I don't know why they are there) Edited April 7, 2021 by Lipko Quote Link to comment
MikaelH Posted April 8, 2021 Report Share Posted April 8, 2021 If you switch the disabled structures, it shows you how it works better. Using the Graph.Plot feature is just an option, I would probably use a separate Picture conttrol to the left of the Graph that hold the titles. Or when we want to have nice/different types of plot we use a WebBrowser container with html/javascrip code. 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.