jquery压入指定格式的数据到数组

1.趋势图series中的data接收一个数组,其格式是return 中的内容
2.假如后台返回数据是value,now两个字段
3.填充历史数据时,要将多个"return"格式的数据压入数组,赋值给data。要怎样压入return这种格式的数据呢?

var AppleValue=0;
var now;
       function GetAppleData() {
      
        $.ajax({
            url: "/Controls/GetAppleData/",          
            type: "GET",
            //dataType: 'json',
            success: function (res) {                
                AppleValue = res.data.value;
                now  = res.data.now;
                console.info(res);
            },
            error: function (err) {
                console.log(err.responseText);
                // alert(err.responseText);
            }
        });

        return {
            name: now.toString(),
            value: [
                now,
                Math.round(AppleValue)
            ]
        }
    }
    setInterval(function () {     
        data3.push(GetAppleData());  
        myChart3.setOption({           
            visualMap:{
            top: 10,
            right: 10,
            show: false,
            precision: 1,
            seriesIndex: 0,
            pieces: [{                 
                color: '#33CC33'
            }],
            outOfRange: {
                color: '#CC3300' // 设置超出部分的颜色            } 
          },
            series: [{
                data: data3
            }]
        }, false);
    }, 1000);

使用Promise