Using the full width of an Excel chart with two Y-axes
Posted
by Jørn Schou-Rode
on Super User
See other posts from Super User
or by Jørn Schou-Rode
Published on 2010-04-09T19:55:17Z
Indexed on
2010/04/09
20:03 UTC
Read the original article
Hit count: 248
excel
I am trying to create a line chart in MicrosoftExcel 2007 with two data series, each with their own Y-axis.
First, I create a simple chart by selecting the two data series, and choosing Insert > Charts > Line
from the Ribbon. I now see the following chart in my workbook:
I then continue my quest by right clicking one of the data series (lines) and choosing Format data series > Series Options > Secondary Axis
. My chart is now looks like this:
This is almost what I want. I did not expect to see the gap between the last X-axis tick point (x = 5) and the secondary (right most) Y-axis. Why does Excel introduce this gap?
Is there anything I can do to avoid it? I have tried right clicking the X-axis and seleting Format Axis > Axis Options > Position Axis: Between tick marks
, but that only introduces a similar gap on by the primary (left most) Y-axis.
© Super User or respective owner