You are here

function pData::getSeriePalette in Visitors 7.2

Same name and namespace in other branches
  1. 7 pChart/class/pData.class.php \pData::getSeriePalette()

File

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

Class

pData

Code

function getSeriePalette($Serie) {
  if (!isset($this->Data["Series"][$Serie])) {
    return NULL;
  }
  $Result = "";
  $Result["R"] = $this->Data["Series"][$Serie]["Color"]["R"];
  $Result["G"] = $this->Data["Series"][$Serie]["Color"]["G"];
  $Result["B"] = $this->Data["Series"][$Serie]["Color"]["B"];
  $Result["Alpha"] = $this->Data["Series"][$Serie]["Color"]["Alpha"];
  return $Result;
}