function pData::setSeriePicture

5.x pData.class.php pData::setSeriePicture($Series, $Picture = NULL)

File

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

Class

pData

Code

function setSeriePicture($Series, $Picture = NULL) 
 {
  if (!is_array($Series)) {
    $Series = $this->convertToArray($Series);
  }
  foreach ($Series as $Key => $Serie) {
    if (isset($this->Data ["Series"][$Serie])) {
      $this->Data ["Series"][$Serie]["Picture"] = $Picture;
    }
  }
}