我有这种数组返回:
1:{
0: "COURT_LIGHTS"
1: "2014-10-01"
2: "101063"
3: "576.94"
4: "576.71"
5: "0.23000000000002"
}
2:{
0: "COURT_LIGHTS"
1: "2014-10-02"
2: "101063"
3: "577.07"
4: "576.95"
5: "0.12"
}
3:{
0: "COURT_LIGHTS"
1: "2014-10-03"
2: "101063"
3: "577.2"
4: "577.07"
5: "0.13"
}
4:{
0: "PROD_ACU"
1: "2014-10-01"
2: "716414"
3: "6541.67"
4: "6531.93"
5: "9.7399999999998"
}
我想要的是根据它的名称动态地将这些值变成一个系列。
示例:
series = [{ date : reading }];
COURT_LIGHTS = [{ array[1] : array[5] }];
然后将其绘制在highcharts中。