You are here

function pData::removeSerie in Visitors 7.2

Same name and namespace in other branches
  1. 8 pchart/pData.inc \pData::RemoveSerie()
  2. 7 pChart/class/pData.class.php \pData::removeSerie()
  3. 7.0 pchart/pData.inc \pData::RemoveSerie()

File

pChart/class/pData.class.php, line 117

Class

pData

Code

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