function initialData() {
  var data = [],
    time = (new Date()).getTime(),
    i;
  // 20 samples, starting 19 ms ago up to present time when feed starts plotting
  for (i = -19; i <= 0; i++) {
    data.push({
      x: time + (i * 1000),
      y: 0
    });
  }
  return data;
}
// Returns an array containing the generated data.
Returns an array containing the generated data.
Returns an array containing the generated data .
function initialData() {
  var data = [],
    time = (new Date()).getTime(),
    i;
  for (i = -19; i <= 0; i++) {
    data.push({
      x: time + (i * 1000),
      y: 0
    });
  }
  return data;
}
function initialData ( ) { var data = [ ] , time = ( new Date ( ) ) . getTime ( ) , i ; for ( i = - 19 ; i <= 0 ; i ++ ) { data . push ( { x : time + ( i * 1000 ) , y : 0 } ) ; } return data ; }
Returns an array containing the generated data.
Returns an array containing the generated data .
// 20 samples, starting 19 ms ago up to present time when feed starts plotting