+ Reply to Thread
Results 1 to 8 of 8

Problem with secondary axis in Excel chart

  1. #1
    Forum Contributor
    Join Date
    12-22-2012
    Location
    Asia
    MS-Off Ver
    Microsoft 365
    Posts
    234

    Problem with secondary axis in Excel chart

    Hi

    I have two series - A and B - of data.

    My data has later dates on top rows and earlier dates on bottom rows so when I plot the graph I format axis/categories in reverse order. This works fine until I change one of the series to secondary axis. When that happens, the graph plots wrongly.

    Appreciate your help. I attach the file.

    regards

    L.Lee
    Attached Files Attached Files
    Last edited by L.LEE; 12-31-2012 at 08:06 PM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Problem in charting

    Hi L.Lee,

    See the attachment and let me know if this looks fine now. thanks.
    excel chart.xlsx


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Contributor
    Join Date
    12-22-2012
    Location
    Asia
    MS-Off Ver
    Microsoft 365
    Posts
    234

    Re: Problem in charting

    Hi

    Thanks for your response. I need the dates to go from Jan 2012 on the left to Dec 2012 on the right and for either Series A and B to be on the secondary Y axis.

    regards

    L.Lee

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Problem with secondary axis in Excel chart

    you can do so by using logarithmic scale on right side axis.. see the attachment.

    excel chart.xlsx

    Regards,
    DILIPandey
    <click on below * if this helps>

  5. #5
    Forum Contributor
    Join Date
    12-22-2012
    Location
    Asia
    MS-Off Ver
    Microsoft 365
    Posts
    234

    Re: Problem with secondary axis in Excel chart

    Is there a way to have Series B not on log scale? The red line also shows data starting from March 2012 whereas my data starts from Jan 2012.

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Problem with secondary axis in Excel chart

    HI Lee, without log, the series is not coming as the way you want

    Regards,
    DILIPandey
    <click on below * if this helps>

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Problem with secondary axis in Excel chart

    Now I know what's wrong with this.... When I tried putting this on two axes, with a sensible y-axis, i could only see one data series. Your datasets are fully superimposable. So, I've changed some of the data and (now), I think that this is what you wanted...
    Attached Files Attached Files

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Problem with secondary axis in Excel chart

    I think one of the main problems here is that the dates are not truely dates and are being treated as text. That's the reason you have to reverse the data in order to get 1/Jan on the left.
    edit the data in column A to convert to true dates. Then all you need do is move one of the series to the secondary axis. As Glenn points out the lines will overlay each other with the current data and default axes settings.
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1