Hi all,
i am using the google timeline plugin 
(https://developers.google.com/chart/interactive/docs/gallery/timeline) and 
it works very well, but now I am faced with a problem I can not solve alone.
I developed a page that dynamically creates different timelines graphics, 
but when I run by obtaining the following error from the console:

*Uncaught TypeError: Cannot read property 'Timeline' of undefined*

the code of the page javascript that is invoked through a cycle is the 
following:

function reload_chart(id) {
        var result = $.ajax("gantt_json.asp", {
                async: false,
                data: {fk_obbiettivo: id},
        }).responseText;
        //console.log(result);
        return result;
}
function drawChart(oggetto,id) {
   var container = document.getElementById(oggetto);
   var chart = new google.visualization.Timeline(container);
   var dataTable = new google.visualization.DataTable(reload_chart(id));
   var options = {'title':'Fasi Operative'};
   chart.draw(dataTable,options);
 }
setTimeout(function(){google.charts.load('current',{'packages': 
['timeline']})}, 2000


anyone has any idea about it.
Thank you in advance for the help you can give me.



Gianluca


-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/5f5dd723-7400-4377-92a5-807ec7f9bf31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to