Exemple #1
0
 function LinePlot($datay, $datax = false)
 {
     parent::__construct($datay, $datax);
     $this->mark = new PlotMark();
     $this->color = ColorFactory::getColor();
     $this->fill_color = $this->color;
 }
Exemple #2
0
 function __construct($datay, $datax = false)
 {
     if (count($datay) % $this->iTupleSize) {
         JpGraphError::RaiseL(21001, $this->iTupleSize);
         //('Data values for Stock charts must contain an even multiple of '.$this->iTupleSize.' data points.');
     }
     parent::__construct($datay, $datax);
     $this->numpoints /= $this->iTupleSize;
 }
Exemple #3
0
 public function __construct($datay, $datax, $angles)
 {
     if (count($datax) != count($datay)) {
         Util\JpGraphError::RaiseL(20001);
     }
     //("Fieldplots must have equal number of X and Y points.");
     if (count($datax) != count($angles)) {
         Util\JpGraphError::RaiseL(20002);
     }
     //("Fieldplots must have an angle specified for each X and Y points.");
     $this->iAngles = $angles;
     parent::__construct($datay, $datax);
     $this->value->SetAlign('center', 'center');
     $this->value->SetMargin(15);
     $this->arrow = new FieldArrow();
 }
Exemple #4
0
 function __construct($datay, $datax = false)
 {
     if (count($datax) != count($datay) && is_array($datax)) {
         JpGraphError::RaiseL(20003);
         //("Scatterplot must have equal number of X and Y points.");
     }
     parent::__construct($datay, $datax);
     $this->mark = new PlotMark();
     $this->mark->SetType(MARK_SQUARE);
     $this->mark->SetColor($this->color);
     $this->value->SetAlign('center', 'center');
     $this->value->SetMargin(0);
     $this->link = new LineProperty(1, 'black', 'solid');
     $this->link->iShow = false;
 }
Exemple #5
0
 function __construct($datay, $datax = false)
 {
     parent::__construct($datay, $datax);
     ++$this->numpoints;
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $sportid = strlen(Request::param('sportid')) > 0 ? Request::param('sportid') : Configuration::General()->runningSport();
     $this->Year = $this->getRequestedYear();
     $this->Sport = new Sport($sportid);
     parent::__construct($this->getCSSid(), 800, 500);
     $this->init();
     $this->addAverage();
 }
Exemple #7
0
 public function __construct($datay, $datax = false)
 {
     parent::__construct($datay, $datax);
     $this->numpoints /= 2;
 }