这是我的小提琴:DEMO
我正在绘制来自JSON的多个系列读取数据中时间戳的差异。如何将“timestamp”,“timestamp2”,“timestamp3”映射到“temperSensorData”而不是步骤?
var processed_json = new Array(); //TS1
var processed_json1 = new Array(); //TS2
// Populate initial series
for (i = 0; i < data.length; i++){
processed_json.push(data[i].timestamp/1000);
processed_json1.push(data[i].timestamp2/1000);
}