Ask Your Question
0

Floating column chart? [closed]

asked 2014-07-17 20:27:38 +0200

endolith gravatar image

updated 2014-07-18 06:08:05 +0200

oweng gravatar image

How do you make a floating column chart, where one range of data is the bottom of the column, and another range of data is the top of the column? You can fake it by creating a stacked column chart and then making the bottom range invisible, but this doesn't work if some of the bottoms are below zero and others are above zero:

floating column chart example

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-02-29 23:29:07.446726

Comments

I am not completely clear on what is required as the description (stacked columns) does not appear to match the displayed example (columns arranged beside each other). Can you edit it to make this clearer? I have edited the question to make consistent use of "column" and "range" rather than "bar" as a bar chart is a separate type of chart in Calc and the question appears to relate to the column chart type. Thanks.

oweng gravatar imageoweng ( 2014-07-18 06:11:48 +0200 )edit

2 Answers

Sort by » oldest newest most voted
2

answered 2014-07-18 15:11:47 +0200

mikebibo gravatar image

It is possible, but it requires more work. I don't think I can do better than this tutorial: http://peltiertech.com/Excel/Charts/S...

Even though it is using Excel, it just uses basic formulae so should be transferable.

edit flag offensive delete link more

Comments

1

Thanks for the link. Unfortunately it does not appear that the charting facility in Calc can float stacked columns of data as easily as Excel can. It is possible for stacked columns to cross the X-axis, and there are workarounds for limited floating, but the data needs to be arranged differently for Calc.

oweng gravatar imageoweng ( 2014-07-19 01:56:04 +0200 )edit

Actually, Excel does not have any greater capacity in this regard than LibreOffice Calc. Did you try the example from the page I linked to? Even the formulae work in LO as advertised. It is exactly the same method that John uses in the other answer, although his formulae are more elegant (use of MIN rather than nested IFs).

mikebibo gravatar imagemikebibo ( 2014-07-27 01:01:29 +0200 )edit

@mikebibo, I did try the example, with the exact same formula, but the results I get in the chart are quite different from that displayed in even the first chart. Example ODS here.

oweng gravatar imageoweng ( 2014-07-27 02:17:23 +0200 )edit

@ oweng, Check your formulae in your attached spreadsheet: Rows 10 & 11 are correct, but rows 12-14 are not, with incorrect cell references, and in rows 15-19 you have transcribed "<" as ">" :-)

mikebibo gravatar imagemikebibo ( 2014-07-27 23:50:33 +0200 )edit

@mikebibo, good grief! Thanks for clearing that up. Awful error. My apologies. Works exactly as you suggest.

oweng gravatar imageoweng ( 2014-07-28 01:45:02 +0200 )edit

@ owing No worries. We've all done it.

mikebibo gravatar imagemikebibo ( 2014-07-30 10:08:46 +0200 )edit
2

answered 2014-07-20 12:49:49 +0200

blindape gravatar image

Hi. In the attached file i have created a basic floating chart.

C:\fakepath\ChartTest.ods

With all specialist charts such as this one the key is the organisation and manipulation of your data. If the minimum value is less than zero then display the min value. If it is greater than zero then you need a spacer to position it in the right location. To position the maximum in the right location just display the maximum if the min is below zero otherwise you need to calculate the difference between the min and the max.

To create this chart I used three calculated data series. 1. The first series is the spacer for the min value. This needs to be be zero if the low is below zero or the same value as the low. The formula is =MIN(0;LowCell). 2. The second to display the low value. This is the low value if below 0 or it must be zero as the spacer has positioned the bottom of the column for low values above 0. The formula is =MIN(0;LowCell). 3. The third series displays the top of the bar. The High value. This is the High value when the low value iss below zero and the difference between the high and low value when the low is above zero. The formula is = HighCell-MAX(0,LowCell).

Once the series are set up, inset a stacked column chart. Then the rest is formatting. 1. Remove borders for all series. 2. Set the first series Area Fill to None. 3. Give the second and third series the same Area Fill colour. 4. Change the location of the horizontal axis labels. Select Outside Start for Place Labels in the PositionIng tab of the format axis dialog.

Hope this helps.

Chers,

John

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-07-17 20:27:38 +0200

Seen: 1,693 times

Last updated: Jul 20 '14