+ Reply to Thread
Results 1 to 14 of 14

How do you fill the area under an X-Y scatter chart?

  1. #1
    Registered User
    Join Date
    02-11-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    32

    How do you fill the area under an X-Y scatter chart?

    I have a X-Y scatter graph and I want to fill in the area underneath the line. Is this possible?

    I have attached the chart.

    many thanks in advance.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: How do you fill the area under an X-Y scatter chart?

    combine it with an area chart, using the same data points. See attached.
    Attached Files Attached Files

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

    Re: How do you fill the area under an X-Y scatter chart?

    You can use an area chart plotted on the secondary axes. You will need to format the horizontal axis as dates and create a new set of x axis values that are positive integer values.
    So add a constant value of ABS(MIN(U27:U77)) to existing value and then multiply by 100.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    02-11-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: How do you fill the area under an X-Y scatter chart?

    Quote Originally Posted by npamcpp View Post
    combine it with an area chart, using the same data points. See attached.
    Quote Originally Posted by npamcpp View Post
    combine it with an area chart, using the same data points. See attached.
    Sorry my problem seems to be a bit more difficult becuase I am already useing a mixed chart. I have a curved with should commence area the righthand side of the lower step of the graph. The curve reaches 0 on the y-axis are approx x=35-40ish.

    When I put in the area data, it does not go under the scatter line in goes under the curve and also now displays the wrong access data. I want it to display the curve x-axis.

    See attached image of resultant graph
    Attached Images Attached Images

  5. #5
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: How do you fill the area under an X-Y scatter chart?

    A picture is not helpful.

    I used the data in your first attachment. If your real data and chart differs, then post that.

  6. #6
    Registered User
    Join Date
    02-11-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: How do you fill the area under an X-Y scatter chart?

    Quote Originally Posted by npamcpp View Post
    A picture is not helpful.

    I used the data in your first attachment. If your real data and chart differs, then post that.
    Please see attached data file.
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: How do you fill the area under an X-Y scatter chart?

    Hmm,

    this is a rather unfortunate data layout. Normally the X data would be listed to the left of the Y data, but that's not the problem. I can create an area chart under one of each data series, but not both.

    Maybe Andy has some ideas.

    see attached.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-11-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: How do you fill the area under an X-Y scatter chart?

    Quote Originally Posted by npamcpp View Post
    Hmm,

    this is a rather unfortunate data layout. Normally the X data would be listed to the left of the Y data, but that's not the problem. I can create an area chart under one of each data series, but not both.

    Maybe Andy has some ideas.

    see attached.
    My Apologies for the layout - it took me about 20 mins to strip out all of the private data and that is what I was left with as a result.

    You graph on the right is what i am trying to achieve acept fot some some reason the lower portion of the curve is now missing?

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

    Re: How do you fill the area under an X-Y scatter chart?

    As per my previous description.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    02-11-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: How do you fill the area under an X-Y scatter chart?

    Quote Originally Posted by Andy Pope View Post
    As per my previous description.
    Thank you this produces the correct result. However, at the risk of appearing extremely stupid, I do not understand how? I do not understannd the 500 etc values you have generated to produce this result?

    Many thanks again.

  11. #11
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: How do you fill the area under an X-Y scatter chart?

    Andy, is it possible to create areas below both the yellow and the lines?

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

    Re: How do you fill the area under an X-Y scatter chart?

    Both fills are possible if you combine the calculate X values in to 1 set of secondary horizontal axis labels.

    Because the secondary axis is a date one and dates can only go as low as 1 day. You have values such as 1.3 and 1.4 which would be rounded up.
    So the multiplication does the factoring up of your source data. Give the precision of the curve you will need to increase that factor to 1000.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    08-02-2012
    Location
    Getxo
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How do you fill the area under an X-Y scatter chart?

    Sorry, moved to new thread.
    Last edited by zigor; 08-02-2012 at 08:35 AM.

  14. #14
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: How do you fill the area under an X-Y scatter chart?

    Hello zigor, and welcome to the forum.

    Unfortunately you have inadvertently broken one of the forum rules. Please read the following and make the necessary change. Thanks.

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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