Hi, thanks for your help ...

Unfortunately, that doc doesn't quite answer my question. I've
followed the guidelines on how to create my own data source using
those docs, but what I'm looking for is how to avoid using
'setresponse' to parse the returned data - we have multiple data
sources drawing multiple graphs, and if they all make call backs to
the same function, I can't differentiate the results.

The docs in your link tell me I can create my own handler in the
'response format' section, but what I'd like is an example bit of code
to show me how - for example, how do I parse the returned JSON data
and turn into a data object I can pass to a graph?

It's quite possible I'm doing this all wrong, but for the life of me,
I can't see a different way of doing it.

Thanks again for your help, Tony.

On Jun 27, 4:41 pm, Jinji <[email protected]> wrote:
> You can read about this 
> here:http://code.google.com/apis/visualization/documentation/dev/implement...
> <http://code.google.com/apis/visualization/documentation/dev/implement...>However,
> I'd recommend reconsidering this approach. This is useful in only the most
> rare cases.
>
>
>
> On Fri, Jun 25, 2010 at 3:44 PM, TonyJ <[email protected]> wrote:
> > Hi all. I've come to the conclusion that the easiest way for us to
> > handle the multiple data sources we're going to need for a stats
> > 'dashboard' we're writing is to create our own response handlers, as
> > described in the documentation:
>
> > Request:
> >http://www.example.com/mydatasource?tqx=responseHandler:myHandlerFunc...
>
> > Response
> > myHandlerFunction({ ....
>
> > Where I'm stuck is what's required in the myHandlerFunction - does
> > anyone have a simple bit of example code I could look at? How do I
> > interpret the JSON data that's returned and turn into a data item that
> > I can pass to a visualization? What actually happens inside Google's
> > own response handler?
>
> > Many thanks in advance ...
>
> > --
> > 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.

Reply via email to