问题描述
data: {
labels: ['JUN','JUL','AUG','SEP','OCT','NOV','DEC'],datasets: [
{
backgroundColor: '#007bff',borderColor: '#007bff',data: [10000,2000,3000,2500,2700,3000]
}
]
},
我需要将数据传递到属性名称数据中。 下面的代码是我的代码。我尝试将ArrayList传递到属性名称数据中,但是失败。
$.getJSON(apiBaseUrl + "Product/GetDataChart",function (data,status) {
$.each(data,function (index,data) {
valueArray.push(data.count);
return index < 5;
})
$.each(valueArray,data) {
newArray.push(data);
})
})
.fail(function (qXHR,status,err) {
console.log("Status : " + status);
console.log("Error : " + err);
});
我如何传递数据?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)