You told, that: The #arrayToDataTable method doesn't support the object-literal syntax (the {v: value, f: "formatted value"} notation).
The formatter has to be supported in #arrayToDataTable, but it is supported in strange way.
This is working:
var table = [
['Year', 'Votes'],
['item 1', 387],
['item 2', {v: 465, f: 'test'}],
['item 3', {v: 610, f: 'test'}]
];
This not:
var table = [
['Year', 'Votes'],
['item 1', {v: 387, f: 'test'}],
['item 2', {v: 465, f: 'test'}],
['item 3', {v: 610, f: 'test'}]
];
That is the problem... If you use the formatter in the first value, corechart gives you the error "Invalid value in 0,1". I mean that is not correct.
Dne pátek, 17. srpna 2012 17:20:19 UTC+2 asgallant napsal(a):