Iterating over json object for drawing a column chart?
问题 I use, google.load('visualization', '1', {'packages': ['columnchart']}); //google.setOnLoadCallback(drawChart); function drawChart(response) { alert(response.customerlist); var data = new google.visualization.DataTable(); data.addColumn('string', 'dbZipcode'); data.addColumn('string', 'countusers'); data.addRows(response.customerlist.length); for (var i = 0; i < response.customerlist.length; i++) { data.setValue(i, 0, response.customerlist[i].dbZipcode); data.setValue(i, 1, response