Thanks a lot! I'll give it a try. I did see getSnapshot() in FireBug
but it wasn't listed as a member function of the ChartWrapper class. I
guess it's an undocumented feature.

On Sep 5, 5:24 am, Viz Kid <[email protected]> wrote:
> Hi
>
> You are correct and indeed in order to access the data from the
> ChartWrapper, you need to take a snapshot of the ChartWrapper which contains
> a static version of the current data. For example, you can
> call wrapper.getSnapshot().getDataTable();
> Notice that if you have a custom view over the table, this might not work as
> you expect.
>
> Hope this helps,
>   Viz Kid
>
>
>
>
>
>
>
> On Mon, Sep 5, 2011 at 8:44 AM, Kirill N <[email protected]> wrote:
> > I create a chart using ChartWrapper (http://code.google.com/apis/chart/
> > interactive/docs/reference.html#chartwrapperobject) that loads data
> > from a remote source i.e. via dataSourceUrl().  Now I'd like to add
> > interactivity to catch clicks.  The code to getSelection() works just
> > fine and give me an object with row and column number - just like it's
> > described at
> >http://code.google.com/apis/chart/interactive/docs/events.html#The_Se...
>
> > My problem is getting a value for those rows and columns.
>
> > If I do wrapper.getDataTable() I get null (it's documented and
> > expected since chart is created from remote data source).
>
> > Documentation suggests making data a global object so it can be
> > accessed:
>
> > "In order to read the selected data, you'll need to call
> > DataTable.getValue() in your handler; the simplest way to enable that
> > is to make the DataTable object global."
>
> > Question is, when data is loaded from remote data source during a call
> > to draw(), how can I catch it or get to it to store it in a global
> > object for future access?  Can't seem to find any reference to this in
> > documentation or on the web.
>
> > --
> > 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.

-- 
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