I'm not sure if that's what is going on - or if it is I don't see how.
The dropdowns to change the graph type appear to work properly, but if I add
for (i = 0; i < graphArray.length; i++) {
graphArray[0].graphtype = "Bar";
drawGraphs(graphArray[0]);
}
to the mainFunction then the Chrome debugger says there's a JSON Promise
error in the datatable in the first array object. However it does draw it
and then stops, i = 1 never happens.
What I'm confused about is that the dropdowns use the same object
datatables and the code for those does draw properly - even when the loop
just stops.
Here's the code with the second loop in mainFunction.
- 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/fbdc7e44-cf80-462b-8446-61ab1e1c169c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.