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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

variable width bars in bar chart

Solved!
Go to solution

I would like to plot a graph that looks like a bar chart, but I want to be able to specify the widths of the bars. For instance, if the user enters 0 for the x-min, 6 for the x-max then 5,000 for y-max I want to draw a bar that starts at 0, has a width of 6 and a height of 5,000. It seems the bar chart options on an xy graph don't allow for variable width, but instead center around whatever x value is associated with a particular y value.

 

Can I do this without actually having to manually plot each rectangle's vertical and horizontal line?

0 Kudos
Message 1 of 3
(2,791 Views)
Solution
Accepted by topic author GregFreeman

Here's my solution (thanks snippet for replacing my local with a beautiful property node...)

 

0 Kudos
Message 2 of 3
(2,779 Views)

@for(imstuck) wrote:

Here's my solution (thanks snippet for replacing my local with a beautiful property node...)

 

 



Use the Code Capture Tool and you won't have this problem.Smiley Wink

0 Kudos
Message 3 of 3
(2,770 Views)