I am trying to copy this example.
The example has this definition:
var data = google.visualization.arrayToDataTable([
['a', 14],
['b', 47],
['c', 80],
['d', 55],
['e', 16],
['f', 90],
['g', 29],
['h', 23],
['i', 58],
['j', 48]
// Treat first row as data as well.
], true);
I have replaced the first parameter with my variable buckets
which is also an array of length-2 arrays. I'm getting the following error which makes no sense:
TypeError: google.visualization.arrayToDataTable is not a function
Even if buckets
is malformed(which I don't think it is) how could that change the identity of arrayToDataTable? It's still a function!