Пример #1
0
 public function BarGraph()
 {
     $this->SVGraphRoot = getSVGraphRoot();
     $this->stylesheetUrl = $this->SVGraphRoot . 'css/BarGraph.css';
     $this->ecmascriptUrl = $this->SVGraphRoot . 'js/BarGraph.js';
     $this->graphTitle = false;
     $this->graphDescription = false;
     $this->xAxisLabel = false;
     $this->yAxisLabel = false;
     $this->xAxisValues = array();
     $this->dataRow = array();
     $this->dataRowNames = array();
     $this->nrOfSteps = 20;
     $this->nullPoint = 100;
     $this->averages = array();
     $this->averagesNames = array();
     $this->movingAverages = array();
     $this->movingAveragesNames = array();
     $this->markedAreas = array('horizontal' => array(), 'vertical' => array());
     $this->nrOfMeasuringPoints = 0;
     $this->measuringPointWidth = 0;
     $this->nrOfDataRows = 0;
     $this->rectWidth = 0;
     $this->rectWidthRatio = 0.5;
     $this->outputTimestamp = true;
     $this->timestampText = 'generated on';
     $this->timestampFormat = 'Y-m-d, H:i:s';
     $this->legendText = 'Key';
     $this->showValues = true;
 }
Пример #2
0
 public function PieGraph()
 {
     $this->SVGraphRoot = getSVGraphRoot();
     $this->stylesheetUrl = $this->SVGraphRoot . 'css/PieGraph.css';
     $this->ecmascriptUrl = $this->SVGraphRoot . 'js/PieGraph.js';
     $this->graphTitle = false;
     $this->graphDescription = false;
     $this->dataRow = array();
     $this->dataRowNames = array();
     $this->nrOfDataRows = 0;
     $this->usedPercentage = 0;
     $this->outputTimestamp = true;
     $this->timestampText = 'generated on';
     $this->timestampFormat = 'Y-m-d, H:i:s';
     $this->legendText = 'Key';
     $this->showValues = true;
 }