function pData::setAxisColor
Search API
5.x pData.class.php | pData::setAxisColor($AxisID, $Format) |
File
- inc/
pchart/ pchart/ class/ pData.class.php, line 430
Class
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;
}
}