I read the solution below. I don't think it is a good one. Creating a JSON 
by yourself?
Isn't there a fix yet to allow Date in row.addCell()?




On Monday, December 12, 2011 at 9:32:40 AM UTC-8, Amir Miller wrote:
>
> Hi,
>
> I am creating a table using Google Visualization Data Source library.
> I created the column like this:
> ColumnDescription colDesc = new ColumnDescription("Date",
> ValueType.DATE, "Date");
>
> Now I am trying to create a row:
> TableRow tr = new TableRow();
> tr.addCell(new Date(2011, 11, 10));
> However it seems the addCell only supports boolean, double and String
> (along with TableCell and Value).
>
> Trying to run it as string or something else produces an exception:
> "Cell type does not match column type, at index: 0. Should be of type:
> DATE"
>
> How can I make the value a date so it can produce this: {v:new
> Date(2011,11,29)} ?
>
> Thanks in advanced,
>
> Amir.
>
>

-- 
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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to