在饼形钻取中动态绑定高速图。 [英] Bind dynamically highchart in pie drill down.
本文介绍了在饼形钻取中动态绑定高速图。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试绑定JQuery Highchart以进行饼形钻取。我完成动态绑定系列:但无法绑定钻取:请帮我如何在dataDrillDown = []中动态绑定json。
我尝试过:
I am trying to bind JQuery Highchart for pie drill down. I am done with dynamically bind of series : but couldn't bind for drilldown : please help me how to bind json dynamically in dataDrillDown =[].
What I have tried:
$.ajax({
type: "POST",
url: "Dashboard.aspx/GetMonthlyImportReport",
data: JSON.stringify(data),
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (data) {
Result = data.d;
var dataSeries = [];
var dataDrilldown = [];
for (var i in Result) {
var serie = new Array(Result[i].supplierName, Result[i].Approved, Result[i].supplierName);
dataSeries.push(serie);
}
MonthlyTransport(dataSeries);
},
failure: function (response) {
alert(response.d);
}
});
推荐答案
.ajax({
type:POST,
url:Dashboard.aspx / GetMonthlyImportReport,
data:JSON.stringify(data),
contentType:application / json; charset = utf-8,
dataType :json,
成功:函数(数据){
结果= data.d;
var dataSeries = [];
var dataDrilldown = [];
for(结果中的var i){
var serie = new Array(Result [i] .supplierName,Result [i] .Approved,Result [i] .supplierName);
dataSeries.push(serie) ;
}
MonthlyTransport(dataSeries);
},
失败:函数(响应) se){
alert(response.d);
}
});
.ajax({ type: "POST", url: "Dashboard.aspx/GetMonthlyImportReport", data: JSON.stringify(data), contentType: "application/json; charset=utf-8", dataType: "json", success: function (data) { Result = data.d; var dataSeries = []; var dataDrilldown = []; for (var i in Result) { var serie = new Array(Result[i].supplierName, Result[i].Approved, Result[i].supplierName); dataSeries.push(serie); } MonthlyTransport(dataSeries); }, failure: function (response) { alert(response.d); } });
这篇关于在饼形钻取中动态绑定高速图。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文