function pData::setSerieDescription

5.x pData.class.php pData::setSerieDescription($Series, $Description = "My serie")
1 call to pData::setSerieDescription()
pData::createFunctionSerie in inc/pchart/pchart/class/pData.class.php

File

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

Class

pData

Code

function setSerieDescription($Series, $Description = "My serie") 
 {
  if (!is_array($Series)) {
    $Series = $this->convertToArray($Series);
  }
  foreach ($Series as $Key => $Serie) {
    if (isset($this->Data ["Series"][$Serie])) {
      $this->Data ["Series"][$Serie]["Description"] = $Description;
    }
  }
}