cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

variable width bars in bar chart

Solved!
Go to solution

variable width bars in bar chart

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
(791 Views)
Solution
Accepted by topic author GregFreeman
08-27-2015 04:09 PM

Re: variable width bars in bar chart

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

 

0 Kudos
Message 2 of 3
(779 Views)

Re: variable width bars in bar chart


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
(770 Views)