ChartWrapper options formatting

715 views
Skip to first unread message

Raini Robinson

unread,
May 2, 2012, 4:35:04 PM5/2/12
to Google Visualization API
I've been trying all day to debug this but I'm not quite sure how
exactly this is supposed to be formatted.

This works:
var linechart = new google.visualization.ChartWrapper({
'chartType': 'LineChart',
'containerId': 'chart1',
'options': {
legend: 'none',
width: '1150',
height: '225',
isStacked: 'false',
backgroundColor: '#F5DEB3',
fontSize: '10'
}
});

This doesn't:
var linechart = new google.visualization.ChartWrapper({
'chartType': 'LineChart',
'containerId': 'chart1',
'options': {
legend: 'none',
width: '1150',
height: '225',
isStacked: 'false',
backgroundColor: '#F5DEB3',
fontSize: '10',
vAxis: {title: 'people',
titleTextStyle: {fontSize: 15}}
}
});

It is really important that this:
vAxis: {title: 'people', titleTextStyle: {fontSize: 15}}

gets into the options otherwise I'm going to have to not use the chart
wrapper and the great utilities that go with it.

I'm sure this is just due to my inexperience with chart wrapper
formatting, if someone would be so kind as to show me what I have done
wrong with the formatting it will ensure three days work has not gone
to waste.

asgallant

unread,
May 3, 2012, 10:30:38 AM5/3/12
to google-visua...@googlegroups.com
I tested that code and it works just fine for me.

Raini Robinson

unread,
May 3, 2012, 11:09:22 AM5/3/12
to google-visua...@googlegroups.com
Ach! I just checked and it seems the code I posted here does indeed work, when pulling it over to here I had incidentally accidentally removed the thing that was the problem.

Thank you for looking at this and responding though~
Reply all
Reply to author
Forward
0 new messages