function pData::getSerieAverage

5.x pData.class.php pData::getSerieAverage($Serie)
2 calls to pData::getSerieAverage()

File

inc/pchart/pchart/class/pData.class.php, line 271

Class

pData

Code

function getSerieAverage($Serie) 
 {
  if (isset($this->Data ["Series"][$Serie])) 
   {
    $SerieData = $this->stripVOID($this->Data ["Series"][$Serie]["Data"]);
    return (array_sum($SerieData) / sizeof($SerieData));
  }
  else {
    return (NULL);
  }
}