HI Sergey,

I understand the Date String representation. BUT

The means that I have to do this 

ColumnDescription columnDescription = new ColumnDescription(
                    "countDate", ValueType.*TEXT*, "Count Date");


The result is that the JSON returned will have 

[{"id":"countDate","label":"Count Date","type":"*string*","pattern":""},...



DateRangeFilter will not work, and many other things may not work when 
expecting a type of date.







On Thursday, April 30, 2015 at 10:28:30 AM UTC-7, Sergey wrote:
>
> It sounds like you're using the Java DataSource library. You should try 
> the Date String representation outlined here: 
> https://developers.google.com/chart/interactive/docs/datesandtimes#datestring
>
> On Thu, Apr 30, 2015 at 1:10 PM da <angu...@gmail.com <javascript:>> 
> wrote:
>
>> How do I get this work?
>>
>> ColumnDescription columnDescription = new ColumnDescription(
>>                     "countDate", ValueType.DATE, "Count Date");
>>
>> ...
>> Date someDate = new Date();
>> row.addCell(someDate);
>>
>> ====
>> Compiler complains that  "The method addCell(TableCell) in the type 
>> TableRow is not applicable for the arguments (Date)"
>>
>> Why does ColumnDescription allow ValueType.DATE but the row.addCell() 
>> does not allow dates?
>>
>>
>> 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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to