When you create the ChartWrapper, you can assign options the same way you 
would when drawing the chart, except you pass them as the "options" 
parameter of the wrapper:

var chart = new google.visualization.ChartWrapper({
    chartType: 'BubbleChart',
    containerId: 'chart_div',
    options: {
        bubble: {
            textStyle: {
                color: 'none'
            }
        }
    }
});

When you set or modify options via the ChartWrapper#setOption method, you 
use the fully qualified option path:

chart.setOption('bubble.textStyle.color', 'blue');

or you can pass an object of sub options:

chart.setOption('bubble', {
    textStyle: {
        color: 'red'
    }
});

Be aware that this method overwrites the entire option (in the first case, 
it sets just the text color to blue, in the second case, it would overwrite 
the entire "bubble" option, including parts that had nothing to do with the 
textStyle), so take care when using it.

On Friday, May 24, 2013 1:16:19 PM UTC-4, Mark Ravina wrote:
>
> I am having some trouble combing a bubblechart with a dashboard. When I 
> create a bubblechart with 
>
>
>        new google.visualization.BubbleChart()
>
>
> I can also use 
>
>        var options = {
>                bubble: {textStyle: {color: 'none'}}
>                       };
>
>
> and then with chart.draw(data, options) I get the result I want -- no 
> labels on the bubbles without a mouseover. The problem comes with 
>
>         var bubblechart = new google.visualization.ChartWrapper()
>
>  which I think I need for the dashboard. I've managed to set some options 
> with 
>
>          bubblechart.setOption('title', 'Map'
>                              ); 
>
> But what's the syntax I need to set the bubble text style, axis labels, 
> etc?
>
>
>

-- 
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 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to