You are here

function pData::RemoveSerie in Visitors 8

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

File

pchart/pData.inc, line 179

Class

pData

Code

function RemoveSerie($SerieName = "Serie1") {
  if (!isset($this->DataDescription["Values"])) {
    return 0;
  }
  $Found = FALSE;
  foreach ($this->DataDescription["Values"] as $key => $Value) {
    if ($Value == $SerieName) {
      unset($this->DataDescription["Values"][$key]);
    }
  }
}