Hello guys, I'm trying to create a function which creates a Chart from a JSON. The keys in this JSON are "lines".
So function creates a multiple DataTables and then, it tries to join them and create a Chart. The problem is that it acts like it joins the first and last table because I see there only 2 lines. Here is a working snippet: JSFiddle snippet > http://jsfiddle.net/milanoo/XF7JE/382/ <http://jsfiddle.net/milanoo/XF7JE/382/> As you can see there are multiple keys (shops) in the JSON but only the first and last one are shown on a graph. *JOIN SNIPPET *from my code where datas is an array of DataTables: var joinedData = datas[0]; $.each(datas, function (index, data1) { console.log('joining index '+index) if (index != 0) { joinedData = google.visualization.data.join(joinedData, data1, 'full', [[0, 0]], [1], [1]); } }); Do you know what should I do to draw all lines? -- 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 https://groups.google.com/group/google-visualization-api. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/2a9a30d2-84e5-4993-a4a7-54e89bed1ccb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
