LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

text scales on bar graphs

I set out to make a bar graph with text scale labels today and was shocked to discover that is not built into Labview.  I see the feature was requested back in 2009, here.  I also see there are a few posts showing workarounds, the prettiest of which was Ben's, here.

 

I decided to post my own solution, which is based off of Ben's code.  I did the math a bit differently, and I manually set the graph scale's limits to show the first and last bars in full (as opposed to what happens when you use autoscaling: half of each of those two bars gets cut off).

 

I included 3 versions of the code (saved in Labview 2014):

-horizontal bar graph

-vertical bar graph with horizontal text

-vertical bar graph with vertical text

 

horizontal bar graph with text scale.png

 

 

vertical bar graph with horizontal text scale.png

vertical bar graph with vertical text scale.vi

vertical bar graph with horizontal text scale code.png

 

Message 1 of 1
(4,845 Views)