Esempio n. 1
0
 function setScalar()
 {
     $maxValue = 100;
     $maxValue = max($maxValue, KChartGoogleHelper::getMaxOfArray(KChartGoogleHelper::addArrays($this->_data)));
     if ($maxValue < 100) {
         $this->_scalar = 1;
     } else {
         $this->_scalar = 100 / $maxValue;
     }
 }