You are here

function pData::AddSerie in Visitors 7.0

Same name and namespace in other branches
  1. 8 pchart/pData.inc \pData::AddSerie()

File

pchart/pData.inc, line 148

Class

pData

Code

function AddSerie($SerieName = "Serie1") {
  if (!isset($this->DataDescription["Values"])) {
    $this->DataDescription["Values"][] = $SerieName;
  }
  else {
    $Found = FALSE;
    foreach ($this->DataDescription["Values"] as $key => $Value) {
      if ($Value == $SerieName) {
        $Found = TRUE;
      }
    }
    if (!$Found) {
      $this->DataDescription["Values"][] = $SerieName;
    }
  }
}