code: function UpdateChartData()
  {
      while(Points > 10)
      {
          Points -= 1;
  
          myLineChart.removeData();
      }
  
      myLineChart.addData([Data["Temperature"]], Math.floor((Date.now() - StartTime) / 1000.0));
      myLineChart.update();
      Points+=1;
  }
docs: update the chart function