+ Reply to Thread
Results 1 to 19 of 19

xy charts??

  1. #1
    Registered User
    Join Date
    04-01-2010
    Location
    Chester-le-Street, England
    MS-Off Ver
    Excel 2016
    Posts
    83

    xy charts??

    Trying to figure out how to graph / chart a relationship between one dependent and two independent variables. The tutorials I have found all address the opposite. I suspect the answer will be contained in xy scatter charts. But do I use two / dual axes as I once did with line charts?? If so I can't work out how to do this, how to set out the data and where to find the dual axes option button.

    Tks for assistance!

  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: xy charts??

    That would be a surface chart, and Excel has very limited capabilities for them.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    04-01-2010
    Location
    Chester-le-Street, England
    MS-Off Ver
    Excel 2016
    Posts
    83

    Re: xy charts??

    I can visualize a simple surface (= 2 dimensional?) chart with independent variables on the x and y axes respectively and the dependent values graphed against each. As I said I've a feeling that x y charts do this, with or without dual axes, but I can't quite figure out how to do it. Trial and error?
    Last edited by teylyn; 04-02-2010 at 09:37 PM. Reason: removed spurious quote

  4. #4
    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: xy charts??

    I have a feeling that no x-y charts do this. You need need three independent axes.

  5. #5
    Registered User
    Join Date
    04-01-2010
    Location
    Chester-le-Street, England
    MS-Off Ver
    Excel 2016
    Posts
    83

    Re: xy charts??

    If you wanted to chart (for example) the second hand values of a model of a car against the age and the mileage as displayed in various used car adverts, I can't see why Excel cannot do this (without resorting to 3 axes - I can't think in 3 dimensions!). There are only two independent variables to go on 2 independent axes. I thought this was what x y charts were designed to do.
    Last edited by teylyn; 04-02-2010 at 09:37 PM. Reason: removed spurious quote

  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: xy charts??

    Maybe. Draw one by hand, scan it and post it.

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

    Re: xy charts??

    for xyz points you can try this
    http://www.andypope.info/charts/3drotate.htm
    Cheers
    Andy
    www.andypope.info

  8. #8
    Registered User
    Join Date
    04-01-2010
    Location
    Chester-le-Street, England
    MS-Off Ver
    Excel 2016
    Posts
    83

    Re: xy charts??

    Tks - the contents look really interesting even if I don't believe that for my simple purposes it's necessary to go to 3 dimensions let alone rotate them! I just need to get the hang of using standard xy charts properly and I suspect that somewhere within what you've sent will be the answer. Weekend's work ahead ..
    Last edited by teylyn; 04-02-2010 at 09:37 PM. Reason: removed spurious quote

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

    Re: xy charts??

    Probably for you example of the car you need

    X axis milage
    Y axis age
    Data label text is the car and cost

    Use this free addin to link data labels to cells.
    http://www.appspro.com/Utilities/ChartLabeler.htm

  10. #10
    Registered User
    Join Date
    04-01-2010
    Location
    Chester-le-Street, England
    MS-Off Ver
    Excel 2016
    Posts
    83

    Re: xy charts??

    Great minds think alike. This is what I had in mind to progress to if and when I succeed in getting the 2-dimensional basics to work using what you sent previously (incl. how to lay out the raw data so that the chart picks it up properly)
    Last edited by teylyn; 04-02-2010 at 09:38 PM. Reason: removed spurious quote

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

    Re: xy charts??

    for 5 pairs of value I would layout like this.

    A2:A6 contains X values
    B2:B6 contains Y values
    B1 contains text to label series

    Select A1:B6 and create a single series XY scatter.

  12. #12
    Registered User
    Join Date
    04-01-2010
    Location
    Chester-le-Street, England
    MS-Off Ver
    Excel 2016
    Posts
    83

    Re: xy charts??

    Tks for realtime response! I'll have to experiment with this because in my case there is no direct correlation between the values in A2:A6 and B2:B6 as would be implied (both are "independent"). May be the xy graph function can accomodate this somehow. I have got my raw data set out in 2-D matrix form but haven't yet tried to "scatter" graph it.
    Last edited by teylyn; 04-02-2010 at 09:38 PM. Reason: removed spurious quote

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

    Re: xy charts??

    You will need to alter the layout of your data.
    Creating a 2 column list where each Row value is repeated for the unique Col value.

  14. #14
    Registered User
    Join Date
    04-01-2010
    Location
    Chester-le-Street, England
    MS-Off Ver
    Excel 2016
    Posts
    83

    Re: xy charts??

    Sorry you've lost me there. I have attached an imaginary simple example of what I am trying to chart. May be you could show me what you mean using this.
    Attached Files Attached Files
    Last edited by teylyn; 04-02-2010 at 09:38 PM. Reason: removed spurious quote

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

    Re: xy charts??

    This uses the index formula with a few IF tests to suppress empty matrix cells for outputting point or label.
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    04-01-2010
    Location
    Chester-le-Street, England
    MS-Off Ver
    Excel 2016
    Posts
    83

    Re: xy charts??

    Brill, I think that's the solution though I admit it is more complex than I had first imagined. I had to refresh my understanding of index (vs vlookup and hlookup) and it will require quite some work to adapt the solution to my original data which is more comprehensive (umpteen rows) than the example. I hope your workings are not copyright! Tks.
    Last edited by teylyn; 04-02-2010 at 09:37 PM. Reason: removed spurious quote

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

    Re: xy charts??

    Telegrap Sam, please stop quoting whole posts. It's just clutter. Use the quick reply box or the New Reply button, not the Quote button when replying to a post.

    thanks

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

    Re: xy charts??

    The simple solution, using your matrix, is to plot a line chart.

    The two variations are included in the attached.
    Attached Files Attached Files

  19. #19
    Registered User
    Join Date
    04-01-2010
    Location
    Chester-le-Street, England
    MS-Off Ver
    Excel 2016
    Posts
    83

    Re: xy charts??

    Andy. Your two latest tks are no doubt neater solutions but unfortunately don't demonstrate the dependency on the combination of "age" and "mileage" which is what I had in mind when I thought of xy scatter graphs. Further thought and experimentation with what you sent, over Easter ...

+ 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