Inheritance: extends PointGraph
 /**
  * construct multigraph
  */
 public function Values($values)
 {
     parent::Values($values);
     if (!$this->values->error) {
         $this->multi_graph = new MultiGraph($this->values, $this->force_assoc, $this->require_integer_keys);
     }
 }
Example #2
0
<?php

session_start();
#echo "<pre>";
#print_r($_SESSION[daten_arr]);
require '../SVGraph.php';
$desc = $_REQUEST['desc'];
$x_label = $_REQUEST['x_label'];
$y_label = $_REQUEST['y_label'];
$geldkonto_id = $_REQUEST['geldkonto_id'];
$graph = new LineGraph();
$graph->setGraphTitle($desc);
$graph->setGraphDescription($desc);
$graph->setXAxisLabel($x_label);
$graph->setYAxisLabel($y_label);
$graph->setXAxis(array('Jan', 'Feb', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'Sept.', 'Oktober', 'Nov', 'Dez'));
/**$graph->addDataRow(array(92,   91,   90,   90, 90, 91,91,91,90,88),    'Vermietet');
	$graph->addDataRow(array(20,21,22,22,22,21,21,21,22,24),  'Leer');
	$graph->addDataRow(array(1,3,5,7,9,11,13,15,25,45),  'test');
	$graph->addDataRow(array(20,21,22,22,22,21,21,21,22,24),  'Leer');
	**/
$me_monat = $_SESSION['daten_arr'][$geldkonto_id]['me_monat'];
$graph->addDataRow($me_monat, 'MIETEINNAHMEN');
$kosten_monat = $_SESSION['daten_arr'][$geldkonto_id]['kosten_monat'];
$graph->addDataRow($kosten_monat, 'KOSTEN');
#$graph->addDataRow(array(10,  9,   8,   7,   6,   5,   4,   3,   2,   1),    'My third data row');
$graph->addAverage(0, 'Average for my first data row');
$graph->addMovingAverage(2, 0, 'Moving average for my first data row');
$graph->addAverage();
// Total average line
$graph->output();
Example #3
0
 /**
  * Calculate the extra details for radar axes
  */
 protected function CalcAxes($h_by_count = false, $bar = false)
 {
     $this->arad = (90 + $this->start_angle) * M_PI / 180;
     $this->axis_right = false;
     parent::CalcAxes($h_by_count, $bar);
 }
Example #4
0
 public function __construct($bgw = BG_WIDTH, $bgh = BG_HEIGHT, $left = LINE_LEFT, $top = LINE_TOP, $area_width = LINE_AREA_WIDTH, $area_height = LINE_AREA_HEIGHT)
 {
     parent::__construct($bgw, $bgh, $left, $top, $area_width, $area_height);
 }