+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    XY Scatter Plot with 1st of month on X axis

    Hi,
    I'm attaching a file with some data that feeds a XY scatter plot with lines connecting the data points. The X axis shows dates, which are interpolated from the data. I'd like the axis to have markers at

    1-Jun, 1-Jul, 1-Aug, etc

    but I have not found a way to do this. I can play with the axis scale settings and start at 1-Jun, but I cannot set the Major unit to be 1 month. I can set it to 30 days, but our calendar system being what it is, that gets me

    1-Jun, 1-Jul, 31-Jul, 30-Aug

    and so on.

    Any ideas how I can see the 1st of each month?????

    thanks for reading

    Teylyn
    Attached Files Attached Files
    Last edited by teylyn; 11-13-2008 at 04:32 PM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    10,944
    In order to control the exact formatting of dates on the x axis you will need to use an additional series and it's data labels.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042
    Thanks Andy,

    I had a feeling the solution would be down this track.

    Teylyn

  4. #4
    Registered User
    Join Date
    03-02-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: XY Scatter Plot with 1st of month on X axis

    hello;

    Can you tell me step by step, as best you can. on how you added that other series to the X axis so that the months would appear?

    Also is there a way in excel 2007 to have the month name appear on the x-axis only. So no day or year?

    thanks

  5. #5
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,042

    Re: XY Scatter Plot with 1st of month on X axis

    Hi Acavrak,

    to answer your second question first (although I don't have Excel 2007 in front of me now, I think this would work): If you X axis has dates, you need to format the axes numbers with the custom format "mmmm" to show full month names or "mmm" to show just the first three letters of the month. At least that's how it works in Excel 2003.

    Now to the first question: The principle is to create a data series that has the labels you want and all values of that series are zero. After you add this series to your chart, you hide the axis labels and instead show data labels for the new series, which are positioned below the data point. You can format data markers that look like axis tick marks.

    Here's the step by step

    1. Somewhere in your sheet, create a two column table, in Andy's attached file it's in column J and K. In column J enter the dates you want displayed on the chart and in column K enter zeros in each line.

    2. Highlight the dates and zeros and add them to the chart as a new data series.

    3. Format the new data series. On the tab Patterns:
    - no line
    - the custom marker style + in size 6
    on the tab Data Labels:
    - tick X value

    4. Format the data labels on the Alignment tab:
    - horizontal: center
    - vertical: center
    - Label Position: below

    5. Format the axis with
    - major tick marks: none
    - minor tick marks: none
    - tick mark labels: none

    If the data labels sit a bit too close to the x axis, try resizing the plot area until it suits.

    Hope that helps.

    cheers
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

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.2.0