+ Reply to Thread
Results 1 to 4 of 4

Problems with X Axis for a Line Chart

  1. #1
    Shadowman13
    Guest

    Problems with X Axis for a Line Chart

    I am trying to create a simple line chart, with the following data:

    1995 1996 1997 1998 1999

    5471 5620 5826 5920 6059

    .... but I am unable to generate a chart showing the years (1995, 1996, 1997,
    etc.) as labels on the X axis. The chart I end up with interprets the years
    as a separate series of data.

    Any suggestions?

  2. #2
    John Mansfield
    Guest

    RE: Problems with X Axis for a Line Chart

    Click once on the series that represents 1995, 1996, 1997, etc. In the
    standard toolbar, go to Chart -> Source Data -> Series Tab. On the bottom
    right side of the dialog box, you will see a formula series references that
    look similar to this:

    =Sheet1!$A$2:$C$2

    You need to find the reference that corresponds with the 1995, 1996, 1997,
    etc. data. Copy that series into the box that says "Category, (X) axis
    labels".

    After that, delete the original series reference from the values box. You
    will see an "Add" and "Remove" button. Select the series reference and hit
    the "Remove" button.

    ----
    Regards,
    John Mansfield
    http://www.pdbook.com


    "Shadowman13" wrote:

    > I am trying to create a simple line chart, with the following data:
    >
    > 1995 1996 1997 1998 1999
    >
    > 5471 5620 5826 5920 6059
    >
    > ... but I am unable to generate a chart showing the years (1995, 1996, 1997,
    > etc.) as labels on the X axis. The chart I end up with interprets the years
    > as a separate series of data.
    >
    > Any suggestions?


  3. #3
    Shadowman13
    Guest

    RE: Problems with X Axis for a Line Chart

    John - that was 90% of what I needed (very clear instructions, by the way).
    How do get the chart to display the year numbers, i.e., 1995, 1996, etc.
    along the bottom of the chart, so that the viewer can readily see that value
    5471 occurs in 1995; 5620 occurs in 1996 and so on?

    "John Mansfield" wrote:

    > Click once on the series that represents 1995, 1996, 1997, etc. In the
    > standard toolbar, go to Chart -> Source Data -> Series Tab. On the bottom
    > right side of the dialog box, you will see a formula series references that
    > look similar to this:
    >
    > =Sheet1!$A$2:$C$2
    >
    > You need to find the reference that corresponds with the 1995, 1996, 1997,
    > etc. data. Copy that series into the box that says "Category, (X) axis
    > labels".
    >
    > After that, delete the original series reference from the values box. You
    > will see an "Add" and "Remove" button. Select the series reference and hit
    > the "Remove" button.
    >
    > ----
    > Regards,
    > John Mansfield
    > http://www.pdbook.com
    >
    >
    > "Shadowman13" wrote:
    >
    > > I am trying to create a simple line chart, with the following data:
    > >
    > > 1995 1996 1997 1998 1999
    > >
    > > 5471 5620 5826 5920 6059
    > >
    > > ... but I am unable to generate a chart showing the years (1995, 1996, 1997,
    > > etc.) as labels on the X axis. The chart I end up with interprets the years
    > > as a separate series of data.
    > >
    > > Any suggestions?


  4. #4
    Jon Peltier
    Guest

    Re: Problems with X Axis for a Line Chart

    Unless I'm asleep, John's suggestion should do this. Are you selecting a
    range for the Category Labels input box of the Source Data - Series dialog?

    To make it work better for subsequent charts, here's a tip: put a label
    in front of the Y values, and keep a blank cell in front of the X
    Values. The blank cell helps Excel determine what to use for category
    labels and series names:

    1995 1996 1997 1998 1999
    Data 5471 5620 5826 5920 6059

    or

    Data
    1995 5471
    1996 5620
    1997 5826
    1998 5920
    1999 6059

    - Jon
    -------
    Jon Peltier, Microsoft Excel MVP
    Peltier Technical Services
    Tutorials and Custom Solutions
    http://PeltierTech.com/
    _______


    Shadowman13 wrote:

    > John - that was 90% of what I needed (very clear instructions, by the way).
    > How do get the chart to display the year numbers, i.e., 1995, 1996, etc.
    > along the bottom of the chart, so that the viewer can readily see that value
    > 5471 occurs in 1995; 5620 occurs in 1996 and so on?
    >
    > "John Mansfield" wrote:
    >
    >
    >>Click once on the series that represents 1995, 1996, 1997, etc. In the
    >>standard toolbar, go to Chart -> Source Data -> Series Tab. On the bottom
    >>right side of the dialog box, you will see a formula series references that
    >>look similar to this:
    >>
    >>=Sheet1!$A$2:$C$2
    >>
    >>You need to find the reference that corresponds with the 1995, 1996, 1997,
    >>etc. data. Copy that series into the box that says "Category, (X) axis
    >>labels".
    >>
    >>After that, delete the original series reference from the values box. You
    >>will see an "Add" and "Remove" button. Select the series reference and hit
    >>the "Remove" button.
    >>
    >>----
    >>Regards,
    >>John Mansfield
    >>http://www.pdbook.com
    >>
    >>
    >>"Shadowman13" wrote:
    >>
    >>
    >>>I am trying to create a simple line chart, with the following data:
    >>>
    >>>1995 1996 1997 1998 1999
    >>>
    >>>5471 5620 5826 5920 6059
    >>>
    >>>... but I am unable to generate a chart showing the years (1995, 1996, 1997,
    >>>etc.) as labels on the X axis. The chart I end up with interprets the years
    >>>as a separate series of data.
    >>>
    >>>Any suggestions?


+ 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