does half of this api not work? (chart options)

87 views
Skip to first unread message

Nicholas Newlands

unread,
Feb 15, 2012, 8:18:30 AM2/15/12
to google-c...@googlegroups.com
Hey, im really, really having trouble with this...any property with a dot '.' in it does not seem to work ie:

var options = { 'width': 410, 
 'height': 260, 'areaOpacity': 1,
 'backgroundColor': '#4d4d4f',
 'hAxis.baselineColor': 'red',
 'series': [{color: '#000', visibleInLegend: false}], 
 'vAxis.gridlines.color': 'red', 
 'vAxis.gridlines.color': 'red' };

Where  'vAxis.gridlines.color': 'red',  dosent work, ive tried with and without quotes. I am also looking for the rule to change the color of text on the x/y axis and the background color of the actual chart area, not the entire graph itself. If anyone can help me that would be great, if the API is broken can you recommend another? im looking rather incompetent to my boss right now at the mercy of this API.....

Jaroslav Záruba

unread,
Feb 25, 2012, 7:39:53 PM2/25/12
to google-c...@googlegroups.com
this options/configuration object is supposed to be a tree of properties, rather then kind-of hash-map

so, instead of:
ar options = { 'vAxis.gridlines.color': 'red');
try something like:
vAxis: {gridlines: {color: '#CCC'}};
Reply all
Reply to author
Forward
0 new messages