コード例 #1
0
ファイル: Cadence.php プロジェクト: guancio/Runalyze
 /**
  * Add to plot
  * @param \Plot $Plot
  * @param int $yAxis
  * @param boolean $addAnnotations [optional]
  */
 public function addTo(Plot &$Plot, $yAxis, $addAnnotations = true)
 {
     parent::addTo($Plot, $yAxis, $addAnnotations);
     if ($this->isRunning) {
         $this->setColorThresholdsAbove($Plot, 185, 173, 162, 151);
     }
 }
コード例 #2
0
ファイル: Swolfcycles.php プロジェクト: guancio/Runalyze
 /**
  * Add to plot
  * @param \Plot $Plot
  * @param int $yAxis
  * @param boolean $addAnnotations [optional]
  */
 public function addTo(\Plot &$Plot, $yAxis, $addAnnotations = true)
 {
     if (empty($this->Data)) {
         return;
     }
     parent::addTo($Plot, $yAxis, $addAnnotations);
 }
コード例 #3
0
ファイル: StrideLength.php プロジェクト: n0rthface/Runalyze
 /**
  * Average
  * @param int $decimals [optional]
  * @return int
  */
 protected function avg($decimals = 2)
 {
     return parent::avg($decimals);
 }
コード例 #4
0
 /**
  * Add to plot
  * @param \Plot $Plot
  * @param int $yAxis
  * @param boolean $addAnnotations [optional]
  */
 public function addTo(Plot &$Plot, $yAxis, $addAnnotations = true)
 {
     parent::addTo($Plot, $yAxis, $addAnnotations);
     $Plot->Options['hooks']['draw'] = array('RunalyzePlot.flotHookColorPoints(' . '[52.2, 50.7, 49.2, 47.7], ' . '["' . self::COLOR_BAD . '", "' . self::COLOR_OKAY . '", "' . self::COLOR_GOOD . '", "' . self::COLOR_OKAY . '"], ' . '"' . self::COLOR_BAD . '")');
 }
コード例 #5
0
 /**
  * Add to plot
  * @param \Plot $Plot
  * @param int $yAxis
  * @param boolean $addAnnotations [optional]
  */
 public function addTo(Plot &$Plot, $yAxis, $addAnnotations = true)
 {
     parent::addTo($Plot, $yAxis, $addAnnotations);
     $this->setColorThresholdsBelow($Plot, 6.7, 8.300000000000001, 10.0, 11.8);
 }
コード例 #6
0
ファイル: GroundContact.php プロジェクト: guancio/Runalyze
 /**
  * Add to plot
  * @param \Plot $Plot
  * @param int $yAxis
  * @param boolean $addAnnotations [optional]
  */
 public function addTo(Plot &$Plot, $yAxis, $addAnnotations = true)
 {
     parent::addTo($Plot, $yAxis, $addAnnotations);
     $this->setColorThresholdsBelow($Plot, 208, 240, 272, 305);
 }
コード例 #7
0
ファイル: VerticalRatio.php プロジェクト: Nugman/Runalyze
 /**
  * Add to plot
  * @param \Plot $Plot
  * @param int $yAxis
  * @param boolean $addAnnotations [optional]
  */
 public function addTo(Plot &$Plot, $yAxis, $addAnnotations = true)
 {
     parent::addTo($Plot, $yAxis, $addAnnotations);
     $this->setColorThresholdsBelow($Plot, 6.1, 7.4, 8.6, 10.1);
 }