Did you try: var data = google.visualization.data.join(data12,data3,'full', [[0,0]],* [1,2]*, [1]);
The last two arguments must be arrays of columns, but your dt1Columns argument was an array of array. On Fri, Jul 10, 2015 at 8:05 AM, Rafael Labarca <[email protected]> wrote: > Daniel, > > Thanks for your help > > dt1 > | Date | Temp1 | > | 2015-07-07 | 1 | > | 2015-07-08 | 2 | > | 2015-07-09 | 5 | > > dt2 > | Date | Temp2 | > | 2015-07-05 | 1 | > | 2015-07-06 | 2 | > | 2015-07-07 | 5 | > > after join of dt1 and dt2(resulting dt12) > dt12 (this one works perfectly) > | Date | Temp1 | Temp2| > | 2015-07-05 | null |1 | > | 2015-07-06 | null | 2 | > | 2015-07-07 | 1 | | > | 2015-07-08 | 2 | | > | 2015-07-09 | 5 | | > > > dt3 > | Date | Temp3 | > | 2015-07-04 | 1 | > | 2015-07-05 | 2 | > | 2015-07-08 | 5 | > > the expected output of dt12 and dt3 should be > > | Date | Temp1 | Temp2|Temp3| > | 2015-07-04 | null |null | 1 | > | 2015-07-05 | null |1 | 2 | > | 2015-07-06 | null | 2 | | > | 2015-07-07 | 1 | | | > | 2015-07-08 | 2 | | 5 | > | 2015-07-09 | 5 | | | > > > Thanks! > Rafael. > > 2015-07-09 20:59 GMT-03:00 'Daniel LaLiberte' via Google Visualization API > <[email protected]>: > >> Hi Rafael, >> >> It's not clear from your examples what you expect the output of your join >> of data12 and data3 should be. Can you give an example of that output >> table? >> >> On Thu, Jul 9, 2015 at 4:39 PM, rafLab <[email protected]> wrote: >> >>> Hi!. >>> >>> Is there a way to join more than 2 DataTable to a linear graph? >>> >>> I've tried joining an already joined DataTable(dt1,dt2) with a third >>> Data(dt3) but it doesn't work. >>> >>> var data1 = google.visualization.arrayToDataTable(arrayData1); >>> var data2 = google.visualization.arrayToDataTable(arrayData2); >>> >>> arrayData1 is similar to arrayData2 >>> | Date | Temp | >>> | 2015-07-07 | 1 | >>> | 2015-07-08 | 2 | >>> | 2015-07-09 | 5 | >>> >>> var data12 = >>> google.visualization.data.join(data1,data2,'full',[[0,0]],[1],[1]); >>> >>> My understanding is that now i have something like this: >>> >>> | Date | Temp | Temp | >>> | 2015-07-07 | 1 | 4 | >>> | 2015-07-08 | 2 | 5 | >>> | 2015-07-09 | 5 | 8 | >>> >>> Now, data 3... is the same- >>> | Date | Temp | >>> | 2015-07-03 | 1 | >>> | 2015-07-04 | 22 | >>> | 2015-07-05 | 5 | >>> >>> var data = >>> google.visualization.data.join(data12,data3,'full',[[0,0]],[[1,2]],[1]); >>> //<---- is that correct? >>> >>> >>> if I joing the two first arrays it works like a charm... the issue is >>> with the third. Is there any way to do it or I'm being too creative? >>> >>> >>> Thanks in advance. >>> Regards >>> Rafael. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Google Visualization API" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to >>> [email protected]. >>> Visit this group at >>> http://groups.google.com/group/google-visualization-api. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> >> - 978-394-1058 >> [email protected] <[email protected]> 5CC, Cambridge MA >> [email protected] <[email protected]> 9 Juniper Ridge >> Road, Acton MA >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Google Visualization API" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/google-visualization-api/NRWMmMzbsKM/unsubscribe >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To post to this group, send email to >> [email protected]. >> Visit this group at >> http://groups.google.com/group/google-visualization-api. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to > [email protected]. > Visit this group at > http://groups.google.com/group/google-visualization-api. > For more options, visit https://groups.google.com/d/optout. > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> - 978-394-1058 [email protected] <[email protected]> 5CC, Cambridge MA [email protected] <[email protected]> 9 Juniper Ridge Road, Acton MA -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/d/optout.
