I wrote this program <http://eorcriteria.net> about five years ago that 
uses the API. Now all of a sudden it always throws this error - missing } 
after property list - when it gets to data.addRow.

Here is an example. Has something changed recently that may be causing this?

<script type='text/javascript'>function drawVisualization() {var data = new 
google.visualization.DataTable();data.addColumn('string', 
'Country');data.addColumn('number', 'COUNT of EOR 
Method');data.addRow(['Argentina', {v: 1, f: '1'}]);data.addRow(['Brazil', {v: 
8, f: '8'}]);data.addRow(['Canada', {v: 74, f: '74'}]);data.addRow(['China', 
{v: 60, f: '60'}]);data.addRow(['Colombia', {v: 2, f: 
'2'}]);data.addRow(['Denmark', {v: 1, f: '1'}]);data.addRow(['Germany', {v: 23, 
f: '23'}]);data.addRow(['India ', {v: 5, f: '5'}]);data.addRow(['Indonesia', 
{v: 3, f: '3'}]);data.addRow(['Libya', {v: 1, f: '1'}]);data.addRow(['Norway', 
{v: 11, f: '11'}]);data.addRow(['Romania', {v: 1, f: 
'1'}]);data.addRow(['Trinidad and Tobago', {v: 32, f: 
'32'}]);data.addRow(['Turkey', {v: 1, f: '1'}]);data.addRow(['United Arab 
Emirates', {v: 1, f: '1'}]);data.addRow(['United Kingdom', {v: 6, f: 
'6'}]);data.addRow(['United States', {v: 371, f: 
'371'}]);data.addRow(['Venezuela', {v: 51, f: '51'}]);var chart = new 
google.visualization.ColumnChart(document.getElementById('chartArea'));chart.draw(data,
 {width: 1140, height: 900, title: 'COUNT of EOR Method by Country', 
titleTextStyle: {color: 'black', fontName: 'Arial', fontSize: 18}, 
tooltipTextStyle: {color: 'black', fontName: 'Arial', fontSize: 18}, 
backgroundColor: '#FFFFFF', fontSize: 11, legendTextStyle: {color: 'black', 
fontName: 'Arial', fontSize: 14}, vAxis: {title: 'Country', titleTextStyle: 
{color: 'black', fontName: 'Arial', fontSize: 18}, slantedTextAngle: 90}, 
chartArea:{top:70,left:160, height:600, 
width:840}});}google.setOnLoadCallback(drawVisualization);</script>




-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/a4b6ea56-b303-46f5-b901-bbfc2a33a178%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to