Since you are loading with just google.charts.load('current'), and no
packages, the ChartWrapper must dynamically load the code for the charts
that you then draw. That doesn't appear to be a problem, however.
I see two paths into your drawGraphs() function, once in your mainFunction,
in response to a 'change' event, and once in your makeQuery response
handler. The first call I see, which causes an error, is due to the
'change' event, so perhaps you should figure out how to defer setting up
the 'change' handler.
On Mon, Jun 12, 2017 at 2:32 PM, 'Ray Thomas' via Google Visualization API <
[email protected]> wrote:
> I'm not sure that is the solution, or if it is, I don't see how.
>
> The dropdowns to change the graph type work properly.
>
> but if I add
>
> for (i = 0; i < graphArray.length; i++) {
> graphArray[i].graphtype = "Bar";
> drawGraphs(graphArray[i]);
>
> to the mainFunction then Chrome's debugger reports a JSON Promise error in
> the first datatable ( graphArray[0] ). however it does draw it then stops,
> i=1 never happens.
>
> To add to my confusion, the dropdowns to change the graph type continue to
> work properly even after the loop just halts - and those use the same
> stored datatables
>
> Here's the amnded JSFiddle - https://jsfiddle.net/brisray/qsgewt2d/3/
>
> Ray
>
> --
> 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/79234647-b0ba-4b52-b174-
> 8faab9f04251%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/79234647-b0ba-4b52-b174-8faab9f04251%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/CAOtcSJM8BpaJuOYrLxwN%3D-CV3ugjEEsxQ9MccssSTKkOmCR3ug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.