I am trying to use 100% stacked graph in my dashboard it is generating following error.
*a.z is not a function:* *Graph used: Refer Image* https://developers.google.com/chart/interactive/docs/gallery/barchart *Code used:* google.charts.load("current", {packages:["corechart"]}); google.charts.setOnLoadCallback(barchart); function barchart() { var barGraph=[]; barGraph.push(graph1data); loadDatagraph($scope.graph1finalArray); function loadDatagraph(result) { $.each(result, function (data, value) { for(var i=0;i< value.length; i++){ if(i==0){ barGraph.push(value[i].toString()); }else{ barGraph.push(value[i]); } } }) } alert(barGraph); var view = new google.visualization.DataView(data888); var options = { width: 600, height: 300, legend: { position: 'top', maxLines: 3 }, bar: { groupWidth: '75%' }, isStacked: 'percent' }; var chart = new google.visualization.BarChart(document.getElementById("barchart_values")); chart.draw(view, options); } }); *Resultant Array:* var data888 = google.visualization.arrayToDataTable([ ['ANo','A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7','A8', { role: 'annotation' } ],['Impressions', 135894, 56702, 50002, 50001, 39690, 48609, 8899,3456,''],['Clicks', 556, 115, 63, 72, 14, 115,98,890, ''],['CTR', 20000.19999999993,6005.40000000004, 5000.200000000012, 5000.100000000005, 3968.9999999999777,5000.50000000001, 5002.20000000002,788,''] ]); -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/30986265-5ba9-4793-ad3d-eb01e00fecd0%40googlegroups.com.
