Leave the backgroundColor.fill option set to "transparent" in the chart's
ChartWrapper, then after you create the wrapper but before drawing the
dashboard, use this:
if ($.browser.msie && $.browser.version < 9) {
bar.setOption('backgroundColor.fill', '#1d1d20');
}
Which will change the background color if the browser is IE 8 or older.
On Tuesday, March 26, 2013 10:20:31 AM UTC-4, George Fasal wrote:
>
>
> Your Sir are the Man!!!
>>>
>>>
> On finally query:
>
> I have issues with the transparent background in IE 7/8.
>
> On another chart i am creating I solve this by doing this:
>
> // Set chart options
> var options = {'is3D':true,
> 'width':340,
> 'height':300,
> 'chartArea': {'width': '70%', 'height':
> '60%','top':0},
> legend: {textStyle: {color: 'gray'}},
> pieSliceText:'percentage',
> colors: ['#00529c', '#2274bd', '#3688d1',
> '#4c9ce4', '#62b0f7', '#b1daff']};
> * if ($.browser.msie) {options['backgroundColor'] =
> {fill: '#1d1d20'};}
> else {options['backgroundColor'] = {fill:
> 'transparent'};} *
>
>
> Where do i add:
>
> * if ($.browser.msie) {options['backgroundColor'] = {fill:
> '#1d1d20'};}
> else {options['backgroundColor'] = {fill:
> 'transparent'};}
>
> to the code you sovled for me?
>
> Many Many Many thanks!
> *
>
--
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.