+ Reply to Thread
Results 1 to 7 of 7

Chart Axis Formatting

  1. #1
    Registered User
    Join Date
    08-01-2010
    Location
    USA
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    3

    Chart Axis Formatting

    Hi
    Is there a way to format the axis of a chart so that the X axis only displays the x values of the starting and the end point of the data and so that the Y axis displays the 0 line in addition to the other tick marks.

    I am hoping to incorporate this into VBA code format.
    Thanks

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Chart Axis Formatting

    Welcome to the forum.

    Set the min value and the major unit approriately.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-01-2010
    Location
    USA
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    3

    Re: Chart Axis Formatting

    I can't do that in my case. The limits are pre determined by something else. I can't set the limits to what I want so that the Y 0 value will show.

    Also, what about the X values? It has to only show the starting and endpoint X values. Therefore, only 2 X values should be shown. Can Excel do this?

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Chart Axis Formatting

    Maybe it's time for an example file. You have not even mentioned what chart type your are using.

    The min and max values can easily be set with code, the values can be derived from the min and max of your dataset.

    Post an example, otherwise, I'm afraid there will be too much back and forth with words only.

    cheers

  5. #5
    Registered User
    Join Date
    08-01-2010
    Location
    USA
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    3

    Re: Chart Axis Formatting

    Ok here's a picture:

    http://i.imgur.com/oXPfL.jpg

    The first picture is what Excel normally does when adding numbers to an axis. The bottom graph is what I want, which is to only have number labels on the start and end points.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Chart Axis Formatting

    Set the min value and the major unit approriately.
    Set the min value to 1, the max value to 511, and the major unit to 510.

  7. #7
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Chart Axis Formatting

    p135,

    instead of using an external site, please upload your files with the forum tools into the forum. A lot of corporate firewalls prevent our members from accessing files on file-sharing sites.

    cheers

+ 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