+ Reply to Thread
Results 1 to 17 of 17

Lines on graph update but x axis doesn't

  1. #1
    Registered User
    Join Date
    07-16-2021
    Location
    london
    MS-Off Ver
    MS365
    Posts
    8

    Lines on graph update but x axis doesn't

    I have an excel file containing share prices, and graphs to show how the shar price moves each month.

    When I drag down the data for the date and share prices for the last 30 days, it updates the line on the graph to show the movement, but the date on the x axis doesn't change.

    So last month, I was tracking the month of May, and the graph showed 30th May on the x axis which is correct.
    This month, I'm tracking the month of June, but aftee dragging down all the data up intil 30th June, the x axis is still showing 30th May, when it should be showing 30th June


    In the settingns, i've tried editing the bounds, and manually typing in the number format for 30th June, which is something like 44377.
    When I entered this mannually in the 'bounds' section on graph settings, it still didn't update the date.

    I also chdcked that the axis is selected as automatic in the settings

    I can't share an image as it's for work and therefore the data is confidential

    thank you

    Ryan

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

    Re: Lines on graph update but x axis doesn't

    Any reason you can not move the sheet containing the chart and data to a new workbook, then replace the values with random ones and upload that workbook? A picture is not helpful.

    If you are updating the series to use correct values and dates then the chart should reflect those new dates.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    07-16-2021
    Location
    london
    MS-Off Ver
    MS365
    Posts
    8

    Re: Lines on graph update but x axis doesn't

    Screenshot 2021-07-17 at 09.25.51.png


    Please see attached

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,812

    Re: Lines on graph update but x axis doesn't

    That's a picture. It's not of much help, but it does beg a question: are you using Excel for this project (there is no Excel 2020 - please change your profile to MS365), or something else such as Google Sheets???
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    07-16-2021
    Location
    london
    MS-Off Ver
    MS365
    Posts
    8

    Re: Lines on graph update but x axis doesn't

    How do I attach a file?

    Even when on the main thread, it doesn't let me attach anything. I see the attachment function but nothing happens when I click on it.

    But when I reply to a thread I don't see the attachment function?

    Attachment 740734

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: Lines on graph update but x axis doesn't

    It's the Units (Major/Minor) on the Horizontal axis options that you have set. Reset them to Auto.
    Last edited by josephteh; 07-17-2021 at 05:20 AM.

  7. #7
    Registered User
    Join Date
    07-16-2021
    Location
    london
    MS-Off Ver
    MS365
    Posts
    8

    Re: Lines on graph update but x axis doesn't

    This is how they looked orignally (155.3) Major and (31.06) Minor

    I then selected Auto, and they changed to (200) Major and (40) Minor, the date on the x axis has now shifted to 3rd June 2021, but I need it to be 30th June 2021

    Attachment 740736

    Attachment 740737

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,812

    Re: Lines on graph update but x axis doesn't

    There are instructions at the top of the page explaining how to attach your sample workbook.

    Please update your profile, as requested earlier.

  9. #9
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: Lines on graph update but x axis doesn't

    Set the Maximum Bounds to a day after 30th June 2021.

  10. #10
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: Lines on graph update but x axis doesn't

    Set a date after 30th June, not a day after 30 June. Example, maybe 31st July or even 31st December.

  11. #11
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: Lines on graph update but x axis doesn't

    If 30th June is still not showing, drag the chart area wide until it shows on the chart.

  12. #12
    Registered User
    Join Date
    07-16-2021
    Location
    london
    MS-Off Ver
    MS365
    Posts
    8

    Re: Lines on graph update but x axis doesn't

    profile updated

  13. #13
    Registered User
    Join Date
    07-16-2021
    Location
    london
    MS-Off Ver
    MS365
    Posts
    8

    Re: Lines on graph update but x axis doesn't

    I've tried that but it doesn't help, any other ideas?

  14. #14
    Registered User
    Join Date
    07-16-2021
    Location
    london
    MS-Off Ver
    MS365
    Posts
    8

    Re: Lines on graph update but x axis doesn't

    I tried that but it didn't work, any other ideas?

  15. #15
    Registered User
    Join Date
    07-16-2021
    Location
    london
    MS-Off Ver
    MS365
    Posts
    8

    Re: Lines on graph update but x axis doesn't

    Does anyone know how the bounds work?

    It says the bounds for 30th June is 44408 (when I convert from date format to general), but when I change the maximum bounds to that, it doesn't change anything

  16. #16
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Lines on graph update but x axis doesn't

    It is difficult to debug from a picture. So far, here's what I see:

    0) Chart type is XY scatter
    1) Axis min is set to 3 aug 2017 (42950)
    2) Axis max wants to be set to 30 jun 2021 (44377, but you say this should be 44408, which my copy of Excel says is 31 July 2021)
    3) Difference between max and min is 1427 days (30 Jun 2021) or 1458 days (31 July 2021).
    4) Axis major unit is set to 155.3 (why the fraction of a day? is there time information that needs to be accounted for?).

    Because the difference between the max and min of the axis is not an exact multiple of the major unit, there will be a vertical gridline/axis tickmark "missing" from the end of the horizontal axis. The chart will update, but a new gridline/tick mark/axis label will not appear until the axis maximum goes beyond the next exact multiple of the major unit value.

    I don't know exactly what solution to suggest, because I am not sure exactly what you need this to do. My guess is you want to figure out a combination of axis minimum, maximum, and major unit so that the difference between max and min is an exact multiple of major unit and so that axis max is larger than the last date in your data set. If Excel's "auto" settings do not provide suitable values, you will need to come up with suitable values and enter those in the format axis dialog.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  17. #17
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: Lines on graph update but x axis doesn't

    Please attach a sample workbook.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Graph Axis Lines Distorted in PDF
    By eNinjaInTraining in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-30-2020, 02:22 AM
  2. PPT Themes and AXIS Lines in a Graph
    By james.ALM in forum PowerPoint Formatting & General
    Replies: 1
    Last Post: 08-25-2016, 12:44 AM
  3. Lines to x and y axis of a data of a series (graph)
    By zapotek in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 04-06-2013, 05:44 AM
  4. Re-basing lines on graph with 2-axis
    By Holbrookp in forum Excel General
    Replies: 4
    Last Post: 02-07-2012, 07:18 AM
  5. Plotting 2 bars and 2 lines in a 2 y-axis graph
    By patricia.junkes in forum Excel General
    Replies: 2
    Last Post: 07-08-2011, 03:33 AM
  6. Replies: 2
    Last Post: 04-22-2010, 10:38 PM
  7. Plot 2 data lines, same graph, same axis
    By Simoncush in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-24-2010, 05:03 AM

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