来自json的Highchart x和y轴数据

时间:2017-07-25 11:54:14

标签: javascript jquery highcharts highstock

这是我的小提琴: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);
  }

0 个答案:

没有答案