echarts获取json数据

//为每一项创建数组

var data_x = [];
var data_y = [];
var data_z = [];
var data_a = [];
var data_b = [];

//循环数据,并放入数组
for(i in data) {
  data_x.push(data[i].month);
  data_y.push(data[i].platform);
  data_z.push(data[i].commonly);
  data_a.push(data[i].cashFund);
  data_b.push(data[i].aggregateAmount);
};

//应用数组

data:data_x

posted @ 2017-12-18 13:57  adongP  阅读(2972)  评论(0编辑  收藏  举报