Sorry, skipped the last part of your question:

The object returned to the view has "v" and "f" properties: the "v" 
property is the value of the cell, the "f" property is the formatted value 
of the cell.  In this case, date refers to the date object created two 
lines up (var date = new Date(year, month, day);).

On Monday, April 7, 2014 5:57:01 PM UTC-4, cyb wrote:
>
> Hi,
>
> i want not add new columns.. is there no way that i can take the 'date' 
>  column from the DataTable and parse it to a column with type =date ? i 
> thought i can overwrite values in a DataTable?
>
> data = new google.visualization.arrayToDataTable([
>                     ['date','New York','Austin','San 
> Francisco','Country','Popularity'],
>                     ['20111001',2,3,15,'Germany',200],
>                     ['20111002',5,6,19,'Brazil',400],
>                     ['20111003',8,9,23,'United States',300],
>                     ['20111004',11,12,35,'RU',700]
>                 ];)
>
> at the moment i have this data, and the "date" colum is parsed to a 
> number..
>
> can i not write a calc function that does the same as your code with the 
> dataView ?
>
> and second questions:
>
> yout have set "return {v: date, f: formatter.formatValue(date)};" for 
> what is v:date ? for the formatted value? because you have already set the 
> type to date with "dataView.setColumns([{
>     type: 'date',...."
>
>
>

-- 
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/d/optout.

Reply via email to