backgroundColor.stroke .fill etc

2,846 views
Skip to first unread message

fear209

unread,
Aug 22, 2011, 5:29:39 PM8/22/11
to google-visua...@googlegroups.com
How do i define these in options = {}; 

???

I tried options = { backgroundColor.stroke: '#990000' };
but i "get syntax error unexpected token ."

tnx

foehammer

unread,
Aug 22, 2011, 7:00:10 PM8/22/11
to Google Visualization API
Try this when defining a chart:

'options': {
'backgroundColor':{
'fill': '#990000',
'stroke': '#990000',
'strokeWidth': 5}
}

or yourChartName.setOptions({
'backgroundColor':{
'fill': '#990000',
'stroke': '#990000',
'strokeWidth': 5}
});
or you could make a options variable, which I think is what you're
trying to do.

var options = { backgroundColor':{
'fill': '#990000',
'stroke': '#990000',
'strokeWidth': 5}
};
yourChartName.setOptions( options );

fear209

unread,
Aug 22, 2011, 7:52:29 PM8/22/11
to google-visua...@googlegroups.com
thanx a bunch foehammer

fear209

unread,
Aug 22, 2011, 7:59:02 PM8/22/11
to google-visua...@googlegroups.com
hey just one more thing is there a way to change the color of the arrow on the legend i am using black fill color so it does not show..

foehammer

unread,
Aug 23, 2011, 1:21:49 PM8/23/11
to Google Visualization API
I'm not sure what you mean by the "arrow" on the legend, but depending
on what type of chart you are using you could try the
'legendTextStyle' option and setting it as:

'legendTextStyle': {color: 'white'}

Viz Kid

unread,
Aug 23, 2011, 1:33:49 PM8/23/11
to google-visua...@googlegroups.com

This is not yet documented but actually the legend option can be more complex and can be specified as an object. For example,
legend:
  {position: 'right'.
   scrollArrows: {
    activeColor: 'red',
    inactiveColor: 'black'
    }
  }

Hope this helps,
  Viz Kid

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.


fear209

unread,
Aug 23, 2011, 5:59:09 PM8/23/11
to google-visua...@googlegroups.com
ah great  :) 

again tnx vis kid and foehammer, would be lost with out you ..i hope there are some more undocumented desperately needed features for the gages too :)

fear209

unread,
Aug 23, 2011, 6:15:05 PM8/23/11
to google-visua...@googlegroups.com
I tried it guys and it does not appear to work on GeoChart .. 

Jinji

unread,
Aug 24, 2011, 11:35:29 AM8/24/11
to google-visua...@googlegroups.com
GeoChart doesn't have scroll arrows... (it has a legend arrow, but it can't be configured at the moment)

On Wed, Aug 24, 2011 at 1:15 AM, fear209 <ncor...@gmail.com> wrote:
I tried it guys and it does not appear to work on GeoChart .. 

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
Reply all
Reply to author
Forward
0 new messages