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 [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/79234647-b0ba-4b52-b174-8faab9f04251%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.