Example #1
0
 public function getRows()
 {
     $elos = $this->history->getEloByTs();
     $elos = $this->reduce($elos);
     $data = array();
     foreach ($elos as $ts => $elo) {
         $date = date('M j', $ts);
         $data[] = array($date, $elo);
     }
     return $data;
 }
Example #2
0
 public function getRows()
 {
     $elos = $this->history->getEloByTs();
     $elos = $this->reduce($elos);
     $elosAndMedian = $this->addMedian($elos);
     $data = array();
     foreach ($elosAndMedian as $ts => $eloAndMed) {
         $date = date('M j', $ts);
         $data[] = array($date, $eloAndMed[1], $eloAndMed[0]);
     }
     return $data;
 }