nice, however this is a faded image :-(

you can just set the backgroundColor of the chart to transparent and add
the image in the style of the div

for example:

<script>
.......
chart.draw(data, { ......, backgroundColor: 'transparent' });
......
</script>

<div id="chart"
style="width:500px;height:400px;background-image:url('imgSrc.png');"></div>



On Tue, Nov 29, 2011 at 9:18 PM, Séb <[email protected]> wrote:

> Hi,
>
> The only way I found to display a background image, is with CSS opacity, I
> share it :
>
> HTML
>
>  <div class="bg">
>>
>>     <div id="chart_div" class="chart"></div>
>>
>>  </div>
>>
>>
> CSS
>
> .bg {background:url(yourPic.png);}
>
> .chart {opacity : 0.8;
>
>     -moz-opacity : 0.8;
>
>     -ms-filter: "alpha(opacity=80)"; /* IE 8 */
>
>     filter : alpha(opacity=80); /* IE < 8 */}
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-visualization-api/-/8tSShqG-sNYJ.
> 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.
>

-- 
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.

Reply via email to