I'm trying to pop up a graph of google-line charts, it will be quite simple just the client name on the x-axis and the amount of open calls on the y-axis, I'm returning the following JSON array
[{"Name": "Test Client", "Tickets": 6}]
To populate it I'm using the following:
google.charts.load('current', {'packages':['corechart']});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var jsonData = $.ajax({
url: "/client/ajax",
dataType: "json",
async: false
}).responseText;
var data = new google.visualization.DataTable(jsonData);
var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
chart.draw(data, {width: 400, height: 240});
}
But it returns me saying that it has no column = /, I'm using google charts for the first time, I'm noob :(.
Can anyone give me a light? Thank you in advance.