I read the solution on this , but does not seem to be suitable for my problem. I use google charts to build a line chart. the x axis is a date, and the y axis is an integer.
When I run my code, I get a big error message
The object {"it then lists all my formatted JSON data"} does not have a getColumnType method.
I get JSON chart data from a web service through an AJAX call. My code is bye
<script type="text/javascript"> google.load("visualization", "1", { packages: ["corechart"] }); google.setOnLoadCallback(drawChart); function drawChart() { var jsonData = $.ajax({ url: "WebService.asmx/HelloWorld", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", async: false }).responseText; var options = { title: 'Company Performance' }; var chart = new google.visualization.LineChart(document.getElementById('chart_div1')); chart.draw(jsonData, options); } </script>
source share