The #arrayToDataTable method doesn't support the object-literal syntax (the 
{v: value, f: "formatted value"} notation).  You can build the table 
manually and add data using the DataTable#addRows method or follow the 
method I used in a follow-up post: 
https://groups.google.com/d/msg/google-visualization-api/GcAbKgMwm5s/kxzmYnuPyxYJ

On Wednesday, August 8, 2012 2:02:28 PM UTC-4, Lumière wrote:
>
> I actually get a white screen and the folowing error on the error console :
> Error: Invalid value in 0,1
> Source : 
> https://www.google.com/uds/api/visualization/1.0/66b81c45612b098032b562b20ed13080/format+fr,default,corechart.I.js
> Ligne : 338
>
> Le mercredi 8 août 2012 17:55:12 UTC, Lumière a écrit :
>>
>> I made a little test, but it's not working:
>>
>> var table=[['Year', 'Votes'],
>>           ['item 1',  {v: 387, f: 'test'}],
>>         ['item 2',  {v: 465, f: 'test'}],
>>         ['item 3',  {v: 610, f: 'test'}]];
>>
>> var data = google.visualization.arrayToDataTable(table);
>> var chart = new 
>> google.visualization.BarChart(document.getElementById('chart_div'));
>>         chart.draw(data, options);
>>
>> I just get a empty chart (without any item).
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/OJ2NWy1oPm8J.
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.

Reply via email to