You are here

function pData::setSerieDescription in Visitors 7.2

Same name and namespace in other branches
  1. 7 pChart/class/pData.class.php \pData::setSerieDescription()
1 call to pData::setSerieDescription()
pData::createFunctionSerie in pChart/class/pData.class.php

File

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;
    }
  }
}