更新时间:2023-02-27 07:47:56
似乎您为 http://做对了www.jqplot.com/
您想要数据 [['Firefox',183],['Chrome',28],['IE',2],['Opera',1]];
There You want Data [['Firefox', 183], ['Chrome', 28], ['IE', 2], ['Opera', 1]];
只需在您的js中将visitTime数据解析为int.
这是演示: http://jsfiddle.net/Simplybj/HCNL5/
Simply In your js parse the visitTime data to int.
Here is the Demo : http://jsfiddle.net/Simplybj/HCNL5/
var BrowserWiseVisit = [];
if (msg.d.length > 0) {
var arrVisit = [];
$.each(msg.d, function (index, item) {
arrVisit = [];
arrVisit.push(item.Browser);
arrVisit.push(parseInt(item.VisitTime));
BrowserWiseVisit.push(arrVisit);
});
}