Subscribe Bookmark RSS Feed

two or more x and y graph on one graph

kasif3

New Contributor

Joined:

Dec 11, 2016

Hello,
I have two series of x and y points.
For example: first series : x1=[1,2,3],y1=[0.9,0.7,0.6]
Secend:   x2=[3.5,6.7,4.3],y2=[1,2,3]

 

Is it possibale to put them on the same graph? meaning I'll have one graph with both x1 vs y1 and x2 vs y2, but without  x1 vs y2 and x2 vs y1?

Thank you in advance

3 REPLIES
txnelson

Super User

Joined:

Jun 22, 2012

The simple solution is to

Tables==>Stack

your x and y cols into 2 columns and then use Graph Builder dragging the x stacked col to the x drop area and the y to the y drop area.  Then drag the "Label" col from the stack to the Group X or Y area

 

Or if you drag the label to the overlay area it will differentiate the values by color

Jim
kasif3

New Contributor

Joined:

Dec 11, 2016

Hi,
Thank you for the response.
About your 'differentiate the values by color'; what if I have more then one vairable effecting the data? is there a way to difinite the data acording 2 those vairable, without spliting them into groups (so they could be on the same chart) ?

Thank you in advance

txnelson

Super User

Joined:

Jun 22, 2012

I would just create a new column which is a composite of the two columns in question and then use that column as the onerlay or color column
Jim