Hi again, thanks for your help. I've created a much simplified example. I have two (primitive) data sources, one that returns sales of fruit, the other returns stock levels. Individually, they work fine:
http://site2.dev.workcircle.net:81/php/stock.html http://site2.dev.workcircle.net:81/php/sales.html However, when I combine them, it doesn't work: http://site2.dev.workcircle.net:81/php/sales_stock.html Here I'm using two onload callbacks, as suggested earlier, but although both get called, only one actually draws a graph (if I comment out one, the other works). I get no more luck if I combine them into a single function. My suspicion is that because both data sources return calls to google.visualization.Query.setResponse(), it's impossible to differentiate between the returned data - hence my question elsewhere in this forum about writing your own handlers. However, it's quite possible I'm barking up the wrong tree! Thanks in advance. On Jun 27, 2:56 pm, Jinji <ji...@google.com> wrote: > This seems to be working fine to me, without separating the queries into two > functions, drawChart1 and drawChart2. Note that you need to change the > > if(result.isError()) { > > to > > if(result2.isError()) { > > in the second query response handler. If this is still not working, can you > provide a live (and simplified as much as possible) example? > > > > On Fri, Jun 25, 2010 at 10:35 AM, TonyJ <tonyjew...@gmail.com> wrote: > > Hi! I tried this, but alas, I can't make it work - it only ever seems > > to call which ever callback I set first, never both of them. Any > > pointers? > > > Many thanks in advance, > > > Tony. > > > On Jun 24, 5:54 am, Eiko <eikosaedra-...@yahoo.com> wrote: > > > Separate the queries into two functions, drawChart1 and drawChart2 and > > > then: > > > > google.setOnLoadCallback(drawChart1); > > > google.setOnLoadCallback(drawChart2); > > > > Hope this helps. > > > -- > > 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-visualization-...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-visualization-api+unsubscr...@googlegroups.com<google-visualization- > > api%2bunsubscr...@googlegroups.com> > > . > > 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 google-visualization-...@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.