why this is js script does not work to appear Google Chart ? i use powerbuilder 2019 R2, i send the sample application google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadCallback(function() { drawChart(); } ); function drawChart() { var datosjson; var col = 'name'; var typecol = 'string'; var col1 = 'salesterritory_salesytd'; var typecol1 = 'number'; var col2 = 'salesterritory_saleslastyear'; var typecol2 = 'number'; var title = ''; $.getJSON("json1.json",function(data) { var datatable = new google.visualization.DataTable(); datatable.addColumn(typecol,col); datatable.addColumn(typecol1,col1); datatable.addColumn(typecol2,col2); $.each(data, function(index,value){datatable.addRow([value.name,value.salesterritory_salesytd,value.salesterritory_saleslastyear]); }); var options = { "title": title, "width": 650, "backgroundColor": "#E4E4E42", "is3D": true, "legend": {position: "left", textStyle: {fontSize: 10}, maxLines: 2}, "titleTextStyle": { fontSize: 35, bold: true, color:"blue"}, "height": 500}; var chart = new google.visualization.PieChart(document.getElementById("chart_div")); chart.draw(datatable, options); });}
- tomms tomms
- PowerBuilder
- Wednesday, 27 May 2020 07:36 AM UTC
- Page :
- 1
There are no replies made for this question yet.
However, you are not allowed to reply to this question.
However, you are not allowed to reply to this question.