You are here

function pData::setScatterSerieColor in Visitors 7

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

File

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

Class

pData

Code

function setScatterSerieColor($ID, $Format) {
  $R = isset($Format["R"]) ? $Format["R"] : 0;
  $G = isset($Format["G"]) ? $Format["G"] : 0;
  $B = isset($Format["B"]) ? $Format["B"] : 0;
  $Alpha = isset($Format["Alpha"]) ? $Format["Alpha"] : 100;
  if (isset($this->Data["ScatterSeries"][$ID])) {
    $this->Data["ScatterSeries"][$ID]["Color"]["R"] = $R;
    $this->Data["ScatterSeries"][$ID]["Color"]["G"] = $G;
    $this->Data["ScatterSeries"][$ID]["Color"]["B"] = $B;
    $this->Data["ScatterSeries"][$ID]["Color"]["Alpha"] = $Alpha;
  }
}