google / google-visualization-issues

288 stars 35 forks source link

Bug: chart Table does fail with some data #1913

Open orwant opened 9 years ago

orwant commented 9 years ago
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


orwant commented 9 years ago
Sorry, mistake made else where in the code, please cancel issue.

Original issue reported on code.google.com by laurent@vromman.org on 2015-03-06 15:56:22