1. Load data into DataTable (see attach file)
2. Display as a Table
My Code is valid, since it works with pretty muych all requests, but fails with some,
like the attached one.
$.get(url, function(data) {
var data14 = new google.visualization.DataTable();
data14.addColumn('string', 'Delete');
data14.addColumn('string', 'Get');
data14.addColumn('string', 'Total');
data14.addColumn('number', 'Qté');
data14.addRows(JSON.parse(data));
var chart14 = new google.visualization.Table(document.getElementById('statusmodel'));
google.visualization.events.addListener(chart14, 'sort', function () { $( "#statusmodel"
).trigger("create"); });
google.visualization.events.addListener(chart14, 'ready', function () { $( "#statusmodel"
).trigger("create"); });
google.visualization.events.addListener(chart14, 'page', function () { $( "#statusmodel"
).trigger("create"); });
chart14.draw(data14, { title: 'Types', width:700, allowHtml:true, page:'enable', pageSize:100
});
});
Several json validation website show that json.json is valid.
json.json provide $.get data. Sans titre.png shows the display results.
No alert is raised with error listener. No log shown in console.
Not using a test environment
Operating system is Windows 7. Browser is Firefox 25.
Original issue reported on code.google.com by laurent@vromman.org on 2015-03-06 15:50:04
Original issue reported on code.google.com by
laurent@vromman.org
on 2015-03-06 15:50:04![Sans titre.png](https://storage.googleapis.com/google-code-attachments/google-visualization-api-issues/issue-1913/comment-0/Sans titre.png)