Hi. Without the code, or even better, a live example we cannot do much.
Viz Kid On Tue, Feb 9, 2010 at 6:24 PM, Matt <[email protected]> wrote: > Hi everybody, > > Im facing the following problem. I use the Visualization API with the > piechart package. Everything works fine so far, I can create my pie > charts when my page gets loaded or afterwards when I do it by using a > button to call the function. > > But now when I like to create a pie chart where I get my data from an > AJAX callback, it doesnt work anymore. The javascript code I do > execute from my AJAX callback works well, also the drawChart function > gets called, but no pie chart shows up. I have entered some alerts > after the final call of chart.draw() and I can see the graph for maybe > some milliseconds. But then its gone again. Also the <iframe> tag is > appended to the div where I do like to add my pie chart. But the > following html,title and body tag is empty. > > Now I have read something about the dynamic google API reload, but I > didnt test and understand it yet. Can maybe somebody explain whats > wrong here and if the dynamic API reload does solve my problem ? > > I can also post my code if you need it, but the code is fine so far, I > tested the code from the javascript callback directly when I load the > page, everything is fine with it, the pie charts gets printed, but > only not when I get the code back from my AJAX call after the page is > already loaded. > > Thanks in advance for every advise. > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-visualization-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. 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.
