--
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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
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/a6ee493c-11db-4303-9268-ac56e1cdefb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Justin,I'm not sure I understand what you mean by "This approach requires the dt1columns argument is different for each joining of an additional data set.", but that sounds wrong. You could join the same columns in different datatables each time. The result of each join is a new datatable, so you could do a loop like this:dtJoin = dtables[0];for (i = 1; i < dtables.length; i++) {dtJoin = google.visualization.data.join(dtJoin, dtables[i], joinMethod, joinKeys, 1, 1);}
On Sun, May 7, 2017 at 11:28 AM, Justin Stay <justi...@gmail.com> wrote:
I have many (2+, number unknown at time of generation) of 1D data sets that I would like to plot together. This data is being queried from a MySQL database. The generation of these datasets are captured through N queries (where there are N lines to plot on the line chart). For example:Dataset #1: MySQL query results a data set with M1 (x,y) data pointsDataset #2: M2 (x,y) data pointsetc . . .Such that you end with some number of datasets that are not the same length nor share the same x values.I have seen a few questions/examples that seem to address this question using the join method (https://developers.google.com/chart/interactive/docs/reference#join). This approach requires the dt1columns argument is different for each joining of an additional data set.Is this approach the only method for solving this problem? Is there a better approach? No other plotting tool I've used requires that each data set be the same size.Thanks!
--
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 google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
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/a6ee493c-11db-4303-9268-ac56e1cdefb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
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/a6ee493c-11db-4303-9268-ac56e1cdefb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
----
Daniel,I don't quite follow your code in your last post. Could you explain conceptually what you are doing? Where and how are dt and mergedDatatable defined?I think what you are saying is that for the worst case where you had N lines, each with say M number of x (domain) values, you'd have N columns, M*X rows, and most of the values would be NULL? That seems very inefficient.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
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/a6ee493c-11db-4303-9268-ac56e1cdefb5%40googlegroups.com.
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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
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/945f7b11-6ee1-4006-a88d-d8a409438472%40googlegroups.com.