as I said, the first works and removing new has no impact on the other 
running.  So not the issue.

On Wednesday, March 31, 2021 at 4:06:48 PM UTC-4 Daniel LaLiberte wrote:

> google.visualization.arrayToDataTable is not a constructor, but just a 
> function that internally calls the DataTable constructor.  So remove the 
> 'new' operator and both might work.  Not sure why it would work differently 
> for each of your calls.
>
> On Wed, Mar 31, 2021 at 3:56 PM Chris Thomas <cthoma...@gmail.com> wrote:
>
>>
>> I have a head scratcher.  When I send this info into the chart all works 
>> fine.
>>
>> var data = *new* google.visualization.arrayToDataTable([[*'Quarter'*, 
>> *'Current 
>> Enrollment'*,*'SBHC Enrollment'*,*'Patients Seen'*],[*'Quarter 1'*
>> ,1500,800,600],[*'Quarter 2'*,1450,840,700],
>>
>> [*'Quarter 3'*,1480,920,800]],false);
>>
>>
>> But when I send this in 
>>
>> var data = *new* google.visualization.arrayToDataTable(myarray);
>>
>> I get nothing.  The value of myarray is EXACTLY the same as the data 
>> above. I've checked it in an alert and console.log and even added 
>> characters to each end to make sure there's no hidden characters messing 
>> things up.
>>
>>
>> Any thoughts?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Visualization API" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-visualizati...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-visualization-api/c44ced11-bd21-40f0-8307-1f19509a2c42n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-visualization-api/c44ced11-bd21-40f0-8307-1f19509a2c42n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
>
> • Daniel LaLiberte
>
>  • SWE
>
>  • Cambridge MA
>
>  • dlalibe...@google.com
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/7fb912f1-1d7a-46e7-ae58-dc2e1275a485n%40googlegroups.com.

Reply via email to