ChartMan, I created a simple rails app that reproduces this behavior, because I've been unable to make any progress on my own. It's up at github at
http://github.com/kevinweil/Google-Visualization-Graph-Fail There is a description in the README about how this works -- pasted below. Hopefully we can get to the bottom of this! Thanks so much for the help. Kevin HOW IT WORKS The test_controller.rb has a remote_function tag that invokes the js_data method. On this page, there is a div called "replaceme" which is where the graph should show up. The js_data method returns javascript that fills out a DataTable object and invokes the AreaChart's draw method on the "replaceme" div. In Safari, a chart shows up as expected. In Firefox, no errors occur, but the gviz call returns an iframe with an empty body. On Jun 30, 7:29 am, ChartMan <[email protected]> wrote: > The first step is to reproduce in the simplest environment - a simple html > page. > This will also enable me to look at the example. > For debugging in firefox I use firebug (addon) which is an great debugging > tool. It has > a debugger mode in which you can execute your code line by line. Moreover > you can inspect your > dom and see if its missing anything. > > I am not aware of any Firefox specific issues we have. > > Let me know if this works for you. > > ChartMan > > On Tue, Jun 30, 2009 at 1:19 AM, Kevin Weil <[email protected]> wrote: > > > ChartMan, > > > Thanks for the quick follow up. The only way I know to replicate this > > would be to create a new rails app that sends back fake data from the > > ajax response, post it to github, and send you the link. Does that > > work? > > > In the meantime, do you have any suggestions as to how I could debug > > this? Can I turn on logging, etc? The area and column in the ajax > > api playground DO work for me, and I've confirmed that these charts > > I'm creating consistently DO work for myself and others in Safari, and > > consistently DO NOT work for myself and others in Firefox. So it's > > not just my computer. Happy to try and debug myself if you have a few > > tips... > > > Thanks! > > Kevin > > > On Jun 29, 2:24 pm, ChartMan <[email protected]> wrote: > > > I can not identify the error. Can you send a small example that > > reproduces > > > this error. > > > ChartMan > > > > On Mon, Jun 29, 2009 at 8:56 PM, Kevin Weil <[email protected]> wrote: > > > > > I have an ajax call that returns the javascript and data necessary to > > > > create various charts. I'm using a lot of annotated timelines, and > > > > those work very well. Sparklines also work. The column chart and the > > > > area chart work wonderfully in Safari (and Mac Chrome, FWIW), but in > > > > Firefox the charts don't render. Looking at the response, the <body> > > > > of the iframe html is empty. Again, the exact same chart works great > > > > in other browsers. > > > > > Sparklines are just <img>s and the annotated timeline is flash, while > > > > these are iframes with svg. That seems to be the relevant difference > > > > here. But given that everything works in browsers other than Firefox, > > > > I'm not sure where the error lies. Any ideas? > > > > > Thanks, > > > > Kevin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
