/**
  * draws multi line chart
  */
 protected function drawChart()
 {
     parent::drawChart();
     // Draw the bar chart
     $this->chart->drawLineGraph($this->dataSet->GetData(), $this->dataSet->GetDataDescription());
     $this->chart->drawPlotGraph($this->dataSet->GetData(), $this->dataSet->GetDataDescription(), 3, 1, -1, -1, -1, TRUE);
 }
Ejemplo n.º 2
0
 /**
  * draw the pie chart
  */
 protected function drawChart()
 {
     parent::drawChart();
     // draw pie chart in the middle of graph area
     $middleX = ($this->chart->GArea_X1 + $this->chart->GArea_X2) / 2;
     $middleY = ($this->chart->GArea_Y1 + $this->chart->GArea_Y2) / 2;
     $this->chart->drawPieGraph($this->dataSet->GetData(), $this->dataSet->GetDataDescription(), $middleX, $middleY - 15, 120, PIE_PERCENTAGE, FALSE, 60, 30, 10, 1);
 }
 /**
  * draw multi radar chart
  */
 protected function drawChart()
 {
     parent::drawChart();
     // when drawing radar graph we can specify the border from the top of
     // graph area. We want border to be dynamic, so that either the top
     // or the side of the radar is some distance away from the top or the
     // side of the graph area.
     $areaWidth = $this->chart->GArea_X2 - $this->chart->GArea_X1;
     $areaHeight = $this->chart->GArea_Y2 - $this->chart->GArea_Y1;
     if ($areaHeight > $areaWidth) {
         $borderOffset = ($areaHeight - $areaWidth) / 2;
     } else {
         $borderOffset = 0;
     }
     // the least ammount that radar is away from the graph area side.
     $borderOffset += 40;
     // Draw the radar chart
     $this->chart->drawRadarAxis($this->dataSet->GetData(), $this->dataSet->GetDataDescription(), TRUE, $borderOffset, 120, 120, 120, 230, 230, 230, -1, 2);
     $this->chart->drawFilledRadar($this->dataSet->GetData(), $this->dataSet->GetDataDescription(), 50, $borderOffset);
 }
 /**
  * draws stacked bar chart
  */
 protected function drawChart()
 {
     parent::drawChart();
     // Draw the bar chart
     $this->chart->drawStackedBarGraph($this->dataSet->GetData(), $this->dataSet->GetDataDescription(), 70);
 }