Out of the whole thing I understand that you want to let the user choose which columns to show in the chart based on the checkboxes the user picked, right?
Please have a look at my other thread<https://groups.google.com/d/msg/google-visualization-api/cMVSVyswmrQ/DMhJTlQ1uYoJ>about the 'view' option for the chart ChartWrapper, and do something like the following. I don't think redrawing the dashboard each time while splicing a dataview in between is going to work. On the contrary: <input type="button" onclick="changeChartColumns"> function changeChartColumns() { var arr = listValuesCheckBox(); barChart.setView({'columns': arr}); barChart.draw(); } That just tells the chart to redraw itself using a different set of columns, all the rest remaining the same. All the rest should follow, including the dynamic chart resize, since the draw() function above triggers the 'ready' event you need. Let me know, again I'm working on surfacing the docs for ChartWrapper.setView() which have gone missing. /R. -- 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.
