Jump to content

How to do a grouped stacked bar charts in LabVIEW?


Recommended Posts

1468484997_groupedstackedbarchart.png.8aebf4b51edebd5e403db747f8e4116a.png

image.png.f04f739de45b4082a00fda1d5b14aa27.png

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.

image.png.f164e5b68306726bf70fe0d3521d115e.png

image.png.70022445d0c9a51126dfbc57f1def929.png

Link to post

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 by Lipko
Link to post

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 by Lipko
Link to post

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.


image.png.15fe086d29223917b326d7d6bd57bd71.png

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.