/**
  * Construct a new awScatterPlot
  *
  * @param array $datay Numeric values for Y axis
  * @param array $datax Numeric values for X axis
  * @param int $mode
  */
 public function __construct($datay, $datax = NULL)
 {
     parent::__construct();
     // Defaults marks
     $this->mark = new awMark();
     $this->mark->setType(awMark::CIRCLE);
     $this->mark->setSize(7);
     $this->mark->border->show();
     $this->label = new awLabel();
     $this->setValues($datay, $datax);
     $this->setColor(new awBlack());
 }
예제 #2
0
 /**
  * Construct a new awScatterPlot
  *
  * @param array $datay Numeric values for Y axis
  * @param array $datax Numeric values for X axis
  * @param int $mode
  */
 function awScatterPlot($datay, $datax = NULL)
 {
     parent::awPlot();
     // Defaults marks
     $this->mark = new awMark();
     $this->mark->setType(MARK_CIRCLE);
     $this->mark->setSize(7);
     $this->mark->border->show();
     $this->label = new awLabel();
     $this->setValues($datay, $datax);
     $this->setColor(new awBlack());
 }