You are here

function pData::RemoveSerie in Visitors 7.0

Same name and namespace in other branches
  1. 8 pchart/pData.inc \pData::RemoveSerie()
  2. 7.2 pChart/class/pData.class.php \pData::removeSerie()
  3. 7 pChart/class/pData.class.php \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]);
    }
  }
}