Programmatic Control Changes with bubble chart data

68 views
Skip to first unread message

Len De Groot

unread,
Oct 24, 2012, 9:03:41 PM10/24/12
to google-visua...@googlegroups.com
Hi all,

I trying to allow users to toggle data in a bubble chart and I'm running into a problem with the programatic control changes in the API 

function dashboardReady() {
                               document.getElementById('optionsButton').onclick = function() {

                               //this successfully changes bubble colors
       chart.setOptions({'colors': ['#2577B6', '#AA3834']}); 

                               //but this does not change the data being used in the chart.  (in this case, 7 is a 2 in the original )
chart.setOptions({'view': {'columns': [0,1,7,3,4]}});  

        chart.draw();
       };

Is there something going on with the data that prevents it from being updated?

Thanks in advance,

Len

asgallant

unread,
Oct 25, 2012, 12:59:34 AM10/25/12
to google-visua...@googlegroups.com
Use the #setView method, as the view is not an option:

chart.setView({columns: [0,1,7,3,4]});

Len De Groot

unread,
Oct 25, 2012, 1:38:32 PM10/25/12
to google-visua...@googlegroups.com
Ah, I missed that in the documentation but went back and found it after your post. 

Thanks for the response,

Len
Reply all
Reply to author
Forward
Message has been deleted
0 new messages