This seems to be a quite simple problem, but so far I could not find a
solution:
I have 2 series of values, that both fall into a certain time range,
however, they are not parallel.
Example:
1st series starts at 12:00, and then has values every 5 minutes, like:
12:05, 12:10, 12:15, 12:30 ...
2nd series starts at 12:03, and then has values every 5 minutes, like:
12:03, 12:08, 12:13, 12:18 ...
*Is it somehow possible to display both series in the same line chart? *(Series
2 would be "shifted" for 3 minutes on the x axis)
I am using DataTable to populate the graph, but that requires
"synchronized" values. So if I put the date 12:05 on the axis, I also have
to populate it for both series - which stands in conflict with the second
series.
I tried something like this:
private static DataTable getTestData()
{
DataTable data = DataTable.create();
data.addColumn(ColumnType.DATETIME, "1");
data.addColumn(ColumnType.NUMBER, "Random Numbers");
data.addColumn(ColumnType.DATETIME, "2");
data.addColumn(ColumnType.NUMBER, "More Numbers");
data.addRows(2);
data.setValue(0, 0, new Date(2013, 10, 14, 4, 4));
data.setValue(0, 1, 4);
data.setValue(0, 2, new Date(2013, 10, 14, 4, 5));
data.setValue(0, 3, 5);
data.setValue(1, 0, new Date(2013, 10, 14, 5, 4));
data.setValue(1, 1, 3);
data.setValue(1, 2, new Date(2013, 10, 14, 5, 5));
data.setValue(1, 3, 1);
}
but that is *not allowed* (All series on a given axis must be of the same
data type).
I looked into multiple axis but I could not figure out how to use that in
Java using the GWT-API (Also I am not sure that would solve the problem).
Maybe I am overlooking something simple - any suggestions would be welcome!
Best regards,
DaKa
--
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/groups/opt_out.