addRowFromValues is not happy with Date, nor string, nor long.
DataTable data = new DataTable();
ArrayList<ColumnDescription> cd = new
ArrayList<ColumnDescription>();
cd.add(new ColumnDescription("time", ValueType.DATETIME, "time"));
cd.add(new ColumnDescription("value", ValueType.NUMBER, "value"));
data.addColumns(cd);
data.addRowFromValues(new Date(milliseconds),
rand.nextInt(1000000));
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.