In addition to the solid fill the linear gradient can be really nice. (documented just below the solid fill: http://code.google.com/apis/chart/colors.html#linear_gradient).
For example, add this if you want the whole chart's background to go from black (000000) to a grey (555555) at a 45 degree angle. chf=bg,lg,45,000000,0,555555,0.75 If you just want the chart itself to have the gradient it would be this way I think. chf=c,lg,45,000000,0,555555,0.75 On Sep 2, 6:50 am, "Tom Maslen" <[email protected]> wrote: > Hello, > > You can add this param onto the end of your url... > > chf=bg,s,EFEFEF > > Documented here... > > http://code.google.com/apis/chart/colors.html#solid_fill > > Regards, > Tom Maslen.www.tmaslen.plus.com > > -----Original Message----- > From: [email protected] > > [mailto:[email protected]] On Behalf Of marcello > Sent: 02 September 2009 12:45 > To: Google Chart API > Subject: Does anybody knows how to change the background-color of a > google chart image ? > > I tried hard to change it, first of all I putted inside a div and after > that, inside an img tag, and everything is with background- > color:#f2f2f2. > > Currently, I can only change the background of the graphic, but not the > whole image generated by google. > > Here, the example: > > http://chart.apis.google.com/chart?cht=bvg&chs=450x300&chtt=Precio%20des > de%20130%E2%82%AC/dia&chts=000000,30&chbh=a,1&chxt=x,y&chdl=Leyenda1|Ley > enda2|Leyenda3&chd=s:gwwwhhhhhwzgwhkkkhhh,8222AAAAA2782AoooAAA,9AAAAAAAA > AA9AAAAAAAA&chds=0,257.14&chxr=0,0,257.14|1,0,257.14&chxl=0:|L109|L124|L > 125|L126|L131|L132|L138|L144|L148|L161|L166|L171|L179|L181|L206|L207|L20 > 8|L217|L250|L252%20&chf=c,s,f252f2&chco=2c50f2,FFCC00,8844FF&chg=0,10,10 > ,0 > > Anybody knows a possible solution? > > Thanks a lot. Cheers!! > > http://www.bbc.co.uk/ > This e-mail (and any attachments) is confidential and may contain personal > views which are not the views of the BBC unless specifically stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in reliance > on it and notify the sender immediately. > Please note that the BBC monitors e-mails sent or received. > Further communication will signify your consent to this. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Chart 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-chart-api?hl=en -~----------~----~----~----~------~----~------~--~---
