Mark, multiple google.loads are not recommended anymore, and can generate
undefined behavior. To load multiple packages, you can put them all in the
same array, like so: google.load("visualization", "1", {packages:[
"corechart", 'table', 'treemap', 'timeline']});

- Sergey


On Wed, Sep 25, 2013 at 11:50 AM, Mark Huggins <[email protected]>wrote:

> Sergey,
>    Just running the below html code generates the error. No need to even
> draw the chart maybe it has something to do with the way I'm loading the js?
>
> <!DOCTYPE html>
> <html>
> <head>
>     <script type="text/javascript" src="//www.google.com/jsapi"></script>
>     <script type="text/javascript" src="//
> ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.js"></script>
>     <script type="text/javascript">
>         google.load("visualization", "1", {packages:["corechart"]});
>         google.load('visualization', '1', {packages:['table']});
>         google.load('visualization', '1', {packages: ['treemap']});
>         google.load('visualization', '1', {packages: ['timeline']});
>     </script>
>     <title></title>
> </head>
> <body>
> <div id="chart_div"></div>
> </body>
> </html>
>
> On Tuesday, September 24, 2013 10:53:44 PM UTC-4, Nicholas Poh wrote:
>
>> Hi,
>>
>> When I tried to load the timeline package with the following line,
>>
>>> google.load('visualization', '1', {packages:['timeline']});
>>>
>>
>> I'm getting error,
>>
>>> ReferenceError: Dygraph is not defined @ https://www.google.com/uds/**
>>> api/visualization/1.0/**01bfd211c0a350e1b7454e7b434256**
>>> 5b/format+en,default,table.I.**js:494<https://www.google.com/uds/api/visualization/1.0/01bfd211c0a350e1b7454e7b4342565b/format+en,default,table.I.js:494>
>>>
>>
>> Thus executing the following line,
>>
>>> new google.visualization.Timeline (...)
>>>
>>
>> gives me,
>>
>>> TypeError: google.visualization.Timeline is not a constructor
>>>
>>
>> This started today.
>>
>> Thanks.
>>
>  --
> 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 [email protected].
> To post to this group, send email to
> [email protected].
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to