The callback function is called with no args, but you can wrap anything
with a function(){ ... } to have it pass data to your chart drawing
function. That's what you did when you provided a 'callback' function
setting. Do the same thing in your setOnLoadCallback() call. e.g.
google.charts.setOnLoadCallback(function()
{
buildCharts(data);
});
On Tue, Nov 15, 2016 at 12:16 PM, moresugarmore <[email protected]>
wrote:
> Hello Daniel,
>
> I mentioned in my post that while I understand the documentation instructs
> us to use www.gstatic.com/charts.loader.js , this didn't work out for me
> because I could not find a way for this method to be able to pass data into
> the callback I was setting.
>
> I found another way to call the charts, which works fine for all other
> charts. That is to use the api loader and specify the module I want, as
> documented here:
>
> https://developers.google.com/loader/#available-apis
>
> Using this method, I am able to send my ajax data to my callback function.
> I showed that from above too.
>
> I could not find any way to use setOnLoadCallback() to set a callback and
> also pass my data. If there is a way please let me know.
>
> Thank you!
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to google-visualization-api@
> googlegroups.com.
> Visit this group at https://groups.google.com/
> group/google-visualization-api.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-visualization-api/8688deef-886c-4f12-9208-
> 93883e3a079f%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/8688deef-886c-4f12-9208-93883e3a079f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]> 5CC, Cambridge MA
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJO9-4HSU%3Dofp7n5Q3ugUWo7W1vdvw%3DVbb2HBn2j1w6vvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.