Oops, sorry, that comma was supposed to be a semi-colon  >;o)

On Monday, June 18, 2012 3:13:58 PM UTC-4, [email protected] wrote:
>
>  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/-/uIzwrf1eFQkJ.
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