I am fetching the Google Visualization API as Ajax response and am
adding it to the page as an innerHTML to a DIV. After doing this, the
chart is not loaded. From my understanding, this is because drawChart
will be called only when we call the Google Visualization API load
because I am using "google.setOnLoadCallback(drawChart);"
I could and understand, how can I make it work. Any help would be
great.
Thanks,
Kiran
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
Thank you for your reply.
I have checked the example you have sent. In that he is just fetching
the data in Ajax Request. In my case, the whole script that is
rendering the chart will be fetched as a Ajax response. That response
will be added in to a DIV within my webpage.
Ex.
var div = document.getElementById("someid");
div.innerHTML = response.responseText;
In the above the case, response will have the complete google chart.
If I have added the response to some html file and loaded, it is
perfectly working. But when I have added the same response as
innerHTML, it is not working. Hope you understand.
Thanks,
Kiran