Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Column chart with primary and secondary y-axes

My problem seems simple, I just want to make a column chart with 2 y-axes. When I do this, Excel automatically puts the columns overlapping. I do not want them overlapped! How do I go about correcting this?

An image of what is happening:

Excel overlapping column problem

like image 240
Shinobii Avatar asked Jul 18 '13 01:07

Shinobii


People also ask

Can you have 2 different Y axis in Excel?

In an Excel chart, can I have different Y-axis scales (a primary and secondary axis)? Yes, in Excel 2013 and Excel 2016 you can have two axes. Start by creating a chart with just one axis. Select the data series you wish to place on a secondary axis, by clicking on the series in the chart.

Can we plot two Y axis on the same chart?

When the data values in a chart vary widely from data series to data series, or when you have mixed types of data (for example, currency and percentages), you can plot one or more data series on a secondary vertical (Y) axis.

How do you read a chart with two Y axis?

A second Y axis is a Y axis drawn on the right-hand side of a chart. It can show the same axis scale as the primary Y axis or a different scale. You can use a second Y axis with the same scale as the primary Y axis on a wide chart to help viewers interpret the data more easily.


2 Answers

I believe this method is more straightforward:

  1. Create two dummy series. Series1 and dummy1 on the primary axis, Series2 and dummy2 on the secondary axis.
  2. Reorder the series so dummy1 is above Series1 enter image description here
like image 109
Economist Avatar answered Sep 22 '22 02:09

Economist


You could achieve the chart as shown below with some rather careful manipulation:

SO17712980 example

Basically is requires spacing out your data as shown in columns A:C but also right-aligning the horizontal axis labels, adjusting the secondary axis maximum (and format of both vertical axes, if necessary) and the Gap Width for Series1 to about 10% and for Series2 to about 5%.

(PS I chose the wrong value for C5.)

like image 29
pnuts Avatar answered Sep 23 '22 02:09

pnuts