You are here

function pData::setAxisColor in Visitors 7

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

File

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

Class

pData

Code

function setAxisColor($AxisID, $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["Axis"][$AxisID])) {
    $this->Data["Axis"][$AxisID]["Color"]["R"] = $R;
    $this->Data["Axis"][$AxisID]["Color"]["G"] = $G;
    $this->Data["Axis"][$AxisID]["Color"]["B"] = $B;
    $this->Data["Axis"][$AxisID]["Color"]["Alpha"] = $Alpha;
  }
}