+ Reply to Thread
Results 1 to 6 of 6

Keep chart data on tick marks when using secondary axis

  1. #1
    Registered User
    Join Date
    10-01-2009
    Location
    Durham, NC
    MS-Off Ver
    Excel 2007
    Posts
    14

    Keep chart data on tick marks when using secondary axis

    I have a simple chart that shows actual expenses with a line and budget with an area chart. I like the data to show up on the tick marks, so that it takes up the entire horizontal plot area.

    When I add a secondary axis, the left side of the line and area charts stay on the tick marks, but the right side pulls off of the tick marks, leaving an unsightly gap. I have tried re-formatting the x-axis, but it doesn't help. If I remove the new series of data, the chart goes back to how I wanted it.

    How can I get my charts to be flush on the right side again, with the secondary axis???

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

    Re: Keep chart data on tick marks when using secondary axis

    You need to apply the secondary x axis and format that to cross on tick mark.
    Also set the secondary Y axis to Cross horizontal axis Auotmatically in order to flip the area chart
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    10-01-2009
    Location
    Durham, NC
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Keep chart data on tick marks when using secondary axis

    Thank you Andy. Can you tell me how to access the secondary x axis? I've tried clicking every which way and I can only get the primary's settings, which are on the tick marks.

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

    Re: Keep chart data on tick marks when using secondary axis

    Select the chart. Chart Tools > Layout > Axes > Secondary Horizontal Axis

  5. #5
    Registered User
    Join Date
    10-01-2009
    Location
    Durham, NC
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Keep chart data on tick marks when using secondary axis

    Beautiful. Thanks so much.

  6. #6
    Registered User
    Join Date
    04-18-2023
    Location
    Hai Phong, Vietnam
    MS-Off Ver
    2019
    Posts
    1

    Re: Keep chart data on tick marks when using secondary axis

    Thank you so much, Andy!
    I scoured the Interner for a solution and couldn't believe that I found one from a thread posted 13 years ago.
    Hope you're doing well at the moment!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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