>
> That worked with two slight modifications. First, there isn't any need
> to put the final element outside the loop as I was initially doing so the
> line
>
dataArray.push([arr2(mycount),parseInt(arr[mycount])]);
can go away. Also removed the comma after the array element. Works great.
Final code looks like
var dataArray = [['Date','Count']];
for (var n =0; n < arr2.length; n++)
{
dataArray.push ([arr2[n], parseInt(arr[n])]) }
var data = new google.visualization.arrayToDataTable(dataArray);
--
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/-/V_TyNP7hieAJ.
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.