Пример #1
0
 function addSeries(&$values, $plotType, $title, $style, $strokeColor, $fillColor)
 {
     $this->m_series[] = new series($this, $plotType, $values, $title, $style, $strokeColor, $fillColor);
     if ($this->m_minValue === false) {
         $this->m_minValue = @$values[0];
     }
     $minValue = _min($values);
     $maxValue = _max($values);
     if ($minValue < $this->m_minValue) {
         $this->m_minValue = $minValue;
     }
     if ($maxValue > $this->m_maxValue) {
         $this->m_maxValue = $maxValue;
     }
     $count = count($values);
     if ($count < $this->m_minCount) {
         $this->m_minCount = $count;
     }
     if ($count > $this->m_maxCount) {
         $this->m_maxCount = $count;
     }
 }
Пример #2
0
 function addSeries(&$values, $plotType, $title, $style, $strokeColor, $fillColor)
 {
     $this->m_series[] = new series($this, $plotType, $values, $title, $style, $strokeColor, $fillColor);
     if ($this->m_minValue === false) {
         $this->m_minValue = @$values[0];
     }
     $vFillColor = _decode_color($fillColor);
     $this->m_numLegends[] = $title;
     $this->m_fillLegend[] = imagecolorallocate($this->m_image, $vFillColor[0], $vFillColor[1], $vFillColor[2]);
     $minValue = _min($values);
     $maxValue = _max($values);
     if ($minValue < $this->m_minValue) {
         $this->m_minValue = $minValue;
     }
     if ($maxValue > $this->m_maxValue) {
         $this->m_maxValue = $maxValue;
     }
     $count = count($values);
     if ($count < $this->m_minCount) {
         $this->m_minCount = $count;
     }
     if ($count > $this->m_maxCount) {
         $this->m_maxCount = $count;
     }
 }