Core survey block background color

Permalink 2 users found helpful
Is there a way to change the background color of the survey block to something besides white? If so how?

bryanlewis
 
cannonf700 replied on at Permalink Reply
cannonf700
My Survey blocks are always the same color as the background they are set against.

see:www.www.rynomediaonline.com/concrete5/grunge-columns/...

have you tried using firebug to see where your background is coming from?
bryanlewis replied on at Permalink Reply
bryanlewis
Yours is the same as mine. Its transparent until you actually vote then the background of the graph is white.

I tried firebug and even setting the element to a different color and no luck yet.
LucasAnderson replied on at Permalink Reply
LucasAnderson
I think there is a parameter you need to add in your rendering URL for Google charts. It seems to default to white background when the chart is being drawn, but it looks like you can set it to be transparent.
bryanlewis replied on at Permalink Reply
bryanlewis
Okay sounds good. Any instruction on how to do this? I'm game for trying it out.
NUL76 replied on at Permalink Reply
NUL76
Add "chf=bg,s,65432100" to the SRC of
<img border="" src="http://chart.apis.google.com/chart?cht=p&chd=t:11,5&chs=180x180&chco=FFCC33,FFFF33" />


The background will be transparant.

For more info:http://alblue.bandlem.com/2007/12/use-transparent-backgrounds-in-go...
bryanlewis replied on at Permalink Reply
bryanlewis
<img border="" src="http://chart.apis.google.com/chart?cht=p&chd=t:11,5&chs=180x180&chco=FFCC33,FFFF33:<?php echo join(',',$optionResults)?>&chs=180x180&chco=<?php echo join(',',$graphColors)?>" />


hummm this isn't working for me.
LucasAnderson replied on at Permalink Best Answer Reply
LucasAnderson
Try:

<img border="" src="http://chart.apis.google.com/chart?cht=p&chd=t:11,5&chs=180x180&chf=bg,s,65432100&chco=FFCC33,FFFF33:<?php echo join(',',$optionResults)?>&chs=180x180&chco=<?php echo join(',',$graphColors)?>" />
bryanlewis replied on at Permalink Reply
bryanlewis
This worked great thank you!
damshaw replied on at Permalink Reply
damshaw
Hey,
I just dont get where I can access the src?
AngusHume replied on at Permalink Reply
AngusHume
Excellent!
AngusHume replied on at Permalink Reply
AngusHume
That code did not work for me in 5.4.2 , well it made the chart but of 2 segments of a set size regardless of what data was entered. When I compared it to the original some of the php was messed up. This is what I used...

<img border="" src="http://chart.apis.google.com/chart?cht=p&chd=t:<?php echo join(',',$optionResults)?>&chs=180x180&chf=bg,s,65432100&chco=<?php echo join(',',$graphColors)?>" alt="<?php  echo t('survey results');?>" />