echarts中的series数据循环显示

var series=[];
    for(var i = 0;i<json.data.length;i++){
        series.push({
            name: arr_name[i],
            type: 'line',
            stack: '总量',
            // data:[120, 132, 101, 134, 90, 230, 210]
            data: arr_sum_long_new[i]
        });
    }

    //...echarts配置
    series: series