+ Reply to Thread
Results 1 to 15 of 15

Why does the graph's time axis not match the dates in the selected data?

  1. #1
    Forum Contributor
    Join Date
    02-01-2019
    Location
    Illinois
    MS-Off Ver
    2016
    Posts
    223

    Why does the graph's time axis not match the dates in the selected data?

    I was expecting a graph like the following:
    Capture.JPG

    but what I got was the following:
    Capture2.JPG

    Can anyone tell me why the second graph appeared, instead of the first?

    The spreadsheet is attached.
    Attached Files Attached Files
    Last edited by lovecolorado; 05-07-2019 at 09:09 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Why does the graph's time axis not match the dates in the selected data?

    1. Select Data
    2. Edit Horizontal Axis Labels
    3. Axis Label Range: ='Output - Reports'!$C$29:$D$29


    For each series, add or modify the trend line:
    a. Linear
    b. Forecast, Foward 7 periods (May + 7 = Dec)
    Attached Files Attached Files
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    02-01-2019
    Location
    Illinois
    MS-Off Ver
    2016
    Posts
    223

    Re: Why does the graph's time axis not match the dates in the selected data?

    I follow what you did, but the graph you've created omits the ordered pairs at 12/31/2019.

    Background: I'm creating a spreadsheet to track % member retention and % new members for the chapter of a larger group. The ordered pairs are generated from a download of a group's membership database and a VBA program that extracts % member retention and % new members for a single date. Successive downloads will generate a plot showing how the chapter's % retention and % new changes over time. The data range includes enough cells to plot the % retention and % membership a couple of times per month, for a year, and have a couple left over. However, some chapters will only create this plot a couple of times per year.
    Extending the horizontal lines to 12-31-2019 is important to show end-of-year membership goals.

    I need to keep the horizontal axis representing dates (as it did in the first graph), instead of 'flipping' to counting the number of dates (as it did in the second graph), and I need the horizontal lines to extend through 12-31-2019. Any ideas on how to force this with the data?

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Why does the graph's time axis not match the dates in the selected data?

    Set the axis labels range to C29:AD29.
    Rory

  5. #5
    Forum Contributor
    Join Date
    02-01-2019
    Location
    Illinois
    MS-Off Ver
    2016
    Posts
    223

    Re: Why does the graph's time axis not match the dates in the selected data?

    The file in the original post has the axis range C29:AD29, so it includes the ordered pairs from 12-31-2019. protonLeah shortened the range in order to force the graph's horizontal axis to represent dates (as it did in the first graph), instead of 'flipping' to counting the number of dates (as it did in the second graph). What I need is the axis range C29:AD29 and graph's horizontal axis to represent dates.

  6. #6
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Why does the graph's time axis not match the dates in the selected data?

    Quote Originally Posted by lovecolorado View Post
    The file in the original post has the axis range C29:AD29
    It didn't when I opened it. It didn't have anything set.

  7. #7
    Forum Contributor
    Join Date
    02-01-2019
    Location
    Illinois
    MS-Off Ver
    2016
    Posts
    223

    Re: Why does the graph's time axis not match the dates in the selected data?

    When I open the graph in the original post and select the data, I see the following (which includes C29:AD29):
    Capture.JPG
    Do you see something different?

  8. #8
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Why does the graph's time axis not match the dates in the selected data?

    Yes - I see:

    ='Output - Reports'!$B$30:$AD$35

    It looks from your picture like you have no category labels selected even though the data range includes row 29.

  9. #9
    Forum Contributor
    Join Date
    02-01-2019
    Location
    Illinois
    MS-Off Ver
    2016
    Posts
    223

    Re: Why does the graph's time axis not match the dates in the selected data?

    Since I don't even know what 'category labels' are, you are probably honing in on my problem. What would you suggest to resolve this?

  10. #10
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Why does the graph's time axis not match the dates in the selected data?

    On the right hand side of the Select Data dialog, you can see a 'Horizontal (Category) axis labels list. Click the Edit button, then set the range to C29:AD29.

  11. #11
    Forum Contributor
    Join Date
    02-01-2019
    Location
    Illinois
    MS-Off Ver
    2016
    Posts
    223

    Re: Why does the graph's time axis not match the dates in the selected data?

    When I follow your directions and click on the Edit button, I see the following:

    Capture.JPG
    ;i.e., the range C29:AD29 is already selected. Therefore, selecting the range C29:AD29 will not fix my problem with the graph's horizontal axis 'flipping' to counting the number of dates (as it did in the second graph), instead of represent dates (as it did in the first graph).

  12. #12
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Why does the graph's time axis not match the dates in the selected data?

    How does this look to you?
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    02-01-2019
    Location
    Illinois
    MS-Off Ver
    2016
    Posts
    223

    Re: Why does the graph's time axis not match the dates in the selected data?

    It looks just like the graph I said I wanted in the first post. What did you do to 'get there'?

    I can 'get there' by creating the graph all over again, but the graph occasionally 'flips back' to counting the ordered pairs instead of placing the ordered pairs on a number line representing dates. Since I'm creating this spreadsheet for other chapters, I don't want them to periodically have to recreate graphs, so I hope you did something other than recreate the graph and something that I can replicate to freeze the graph's horizontal axis for other chapters.

  14. #14
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Why does the graph's time axis not match the dates in the selected data?

    I did exactly what I described to you earlier.

  15. #15
    Forum Contributor
    Join Date
    02-01-2019
    Location
    Illinois
    MS-Off Ver
    2016
    Posts
    223

    Re: Why does the graph's time axis not match the dates in the selected data?

    OK. Thanks. Then I'll just have warn the chapters that the graph breaks ocassionally and instruct them on now to recreate the graph.

+ 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. X Axis Dates in Scatter Type Graph
    By CamWSP in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 07-17-2019, 10:40 AM
  2. Replies: 1
    Last Post: 01-12-2018, 04:16 PM
  3. Replies: 1
    Last Post: 09-09-2014, 05:24 AM
  4. plotting bar graph with dates axis
    By Rezez88 in forum Excel General
    Replies: 3
    Last Post: 01-13-2011, 04:02 AM
  5. x-axis dates dont match up with the nodes on the line graph
    By changetires in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-11-2006, 08:50 AM
  6. [SOLVED] selected data not shown in graph and axis labels
    By QuantumLeap in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-01-2006, 12:55 PM
  7. [SOLVED] The dates on the category (X) axis label do not match data?
    By TKGerdie in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-18-2005, 03:05 PM

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