예제 #1
0
 public function __construct($datay, $datax = false)
 {
     parent::__construct($datay, $datax);
     $this->mark = new PlotMark();
     $this->color = Util\ColorFactory::getColor();
     $this->fill_color = $this->color;
 }
예제 #2
0
 public function __construct($datay, $datax = false)
 {
     if (count($datax) != count($datay) && is_array($datax)) {
         Util\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 Graph\LineProperty(1, 'black', 'solid');
     $this->link->iShow = false;
 }
예제 #3
0
 public function __construct($datay, $datax = false)
 {
     parent::__construct($datay, $datax);
     ++$this->numpoints;
 }