Exemplo n.º 1
0
 /**
  * Constructor
  * @param $project Project
  * Takes a Project model and initialises some things ready for making a gantt chart
  * - throws an exception if JPGraph isn't installed. Callers should call EGSGantt::Installed() prior to trying to construct
  * - requires necessary files
  * - instantiates $grapher
  */
 public function __construct(Project $project, $id = null)
 {
     parent::__construct($project, $project->id);
     require_once APP_ROOT . 'plugins/jpgraph/jpgraph_gantt.php';
     $this->grapher = new GanttGraph(800, 300);
     $this->project = $project;
 }
Exemplo n.º 2
0
 public function __construct($data = null, $id = null)
 {
     parent::__construct($data, $id);
     require APP_ROOT . "plugins/jpgraph/jpgraph_bar.php";
     $this->grapher = new Graph(500, 400);
     $this->grapher->SetScale('textlin');
     $this->grapher->SetShadow();
     $this->addPlots($data);
 }
Exemplo n.º 3
0
 public function __construct($data = null, $id = null, $width = 600, $height = 400)
 {
     parent::__construct($data, $id);
     require APP_ROOT . "plugins/jpgraph/jpgraph_pie.php";
     //		require (APP_ROOT."plugins/jpgraph/jpgraph_pie3d.php");
     $this->grapher = new PieGraph($width, $height);
     $this->grapher->SetScale('linlin');
     $this->grapher->SetShadow();
     $this->addPlots($data);
 }