+ Reply to Thread
Results 1 to 4 of 4

Creating a X Y relations chart

  1. #1
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Creating a X Y relations chart

    Hi, how do i create a X Y chart? My Y = X^1.2 I have a two set data. When Y = 1,2,3 etc. Another set of data X which is dependent on Y.
    I want to create a line which show the relation between X and Y. However, i keep getting 2 seperate line. How?
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: Creating a X Y relations chart

    Delete the lower line - it is just plotting X against X. Then change your chart type to an X-Y Scatter plot with lines, rather than a line plot.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Re: Creating a X Y relations chart

    what u mean by lower line? Anyway, i discover that if its a Date and Amount. It will auto become one line.
    HOwever, if its Amount and Amount. It will become 2 line.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,851

    Re: Creating a X Y relations chart

    Starting from the current chart (Chart already created but Excel did not correctly parse x and y values):

    1) Select chart -> change chart type -> XY scatter -> line without marker (or desired subtype).
    2) Pull up the "select data dialog"
    2) Remove series 1
    3) Edit series 2 and tell Excel to use B2:B14 for the Y values and A2:A14 for the X values.

    That should give you an XY scatter chart showing y as a function of x. I would note that I frequently need to "fix" how Excel parses data series at chart creation, so this is not unusual.

    To get Excel to correctly parse the x and y values at chart creation:
    1) Select A2:B14 (do not include A1:B1).
    2) Insert Chart -> Scatter -> line without marker (or desired subtype). Note that I think part of the reason Excel gives 2 series is because you created the chart as a line chart instead of a scatter chart.

    Does that help at all?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. vba / IBM ISeries AS400 relations
    By a.hudrea in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2017, 07:07 AM
  2. [SOLVED] Table Relations
    By kprabhupaul in forum Excel General
    Replies: 2
    Last Post: 02-18-2017, 09:55 AM
  3. [SOLVED] Table Relations
    By kprabhupaul in forum Excel General
    Replies: 2
    Last Post: 02-18-2017, 09:54 AM
  4. [SOLVED] Table Relations
    By kprabhupaul in forum Excel General
    Replies: 18
    Last Post: 02-12-2017, 03:54 AM
  5. [SOLVED] Creating a formula that finds single values dependent on multi-variable relations
    By Bondras in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-02-2016, 03:01 PM
  6. Creating an add-in: References and Relations
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-26-2012, 04:50 PM
  7. Macros Relations
    By pierre08 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-16-2010, 04:35 AM

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