function pData::setScatterSerieColor

5.x pData.class.php pData::setScatterSerieColor($ID, $Format)

File

inc/pchart/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;
  }
}