/**
  * 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());
 }
예제 #3
0
 /**
  * Construct a new awBarPlot
  *
  * @param array $values Some numeric values for Y axis
  * @param int $identifier Plot identifier
  * @param int $number Bar plot number
  * @param int $depth Bar plot depth in pixels
  */
 public function __construct($values, $identifier = 1, $number = 1, $depth = 0)
 {
     parent::__construct();
     $this->label = new awLabel();
     $this->barPadding = new awSide(0.08, 0.08, 0, 0);
     $this->barShadow = new awShadow(awShadow::RIGHT_TOP);
     $this->barBorder = new awBorder();
     $this->setValues($values);
     $this->identifier = (int) $identifier;
     $this->number = (int) $number;
     $this->depth = (int) $depth;
     $this->move = new awSide();
     // Hide vertical grid
     $this->grid->hideVertical(TRUE);
 }
예제 #4
0
 /**
  * Construct a new awLinePlot
  *
  * @param float $value A Y value
  * @param int $start Line start index
  * @param int $stop Line stop index
  * @param int $mode Line mode
  */
 public function __construct($value, $start, $stop, $mode = awLinePlot::LINE)
 {
     parent::__construct();
     $this->lineMode = (int) $mode;
     $this->lineStart = (int) $start;
     $this->lineStop = (int) $stop;
     $this->lineValue = (double) $value;
     $this->lineColor = new awColor(0, 0, 0);
 }
 /**
  * Construct a new awLinePlot
  *
  * @param float $value A Y value
  * @param int $start Line start index
  * @param int $stop Line stop index
  * @param int $mode Line mode
  */
 function awSimpleLinePlot($value, $start, $stop, $mode = LINEPLOT_LINE)
 {
     parent::awPlot();
     $this->lineMode = (int) $mode;
     $this->lineStart = (int) $start;
     $this->lineStop = (int) $stop;
     $this->lineValue = (double) $value;
     $this->lineColor = new awColor(0, 0, 0);
 }
예제 #6
0
	/**
	 * Construct a new awBarPlot
	 *
	 * @param array $values Some numeric values for Y axis
	 * @param int $identifier Plot identifier
	 * @param int $number Bar plot number
	 * @param int $depth Bar plot depth in pixels
	 */
	 function awBarPlot($values, $identifier = 1, $number = 1, $depth = 0) {
	
		parent::awPlot();
		
		$this->label = new awLabel;
		
		$this->barPadding = new awSide(0.08, 0.08, 0, 0);
		$this->barShadow = new awShadow(SHADOW_RIGHT_TOP);
		$this->barBorder = new awBorder;
		
		$this->setValues($values);
		
		$this->identifier = (int)$identifier;
		$this->number = (int)$number;
		$this->depth = (int)$depth;
		
		$this->move = new awSide;
		
		// Hide vertical grid
		$this->grid->hideVertical(TRUE);
	
	}
 /**
  * Construct a new awBarPlot
  *
  * @param array $values Some numeric values for Y axis
  * @param int $identifier Plot identifier
  * @param int $number Bar plot number
  * @param int $depth Bar plot depth in pixels
  */
 public function __construct($values, $identifier = 1, $number = 1, $depth = 0, $maxValue, $drawPercent = true, $noData = false)
 {
     parent::__construct();
     $this->label = new awLabel();
     $this->onRowNumber = 0;
     $this->arrayBarBackground = 0;
     $this->legendColorCounter = 0;
     $this->barPadding = new awSide(0.06, 0.06, 0, 0);
     $this->barShadow = new awShadow(awShadow::RIGHT_TOP);
     $this->barBorder = new awBorder();
     $maxValue = 10;
     foreach ($values as $value) {
         if ($value > $maxValue) {
             $maxValue = $value;
         }
     }
     $this->setValues($values);
     $this->setXMax($maxValue);
     $this->maxValue = $maxValue;
     $this->yAxis->forcedMax = $maxValue;
     $this->identifier = (int) $identifier;
     $this->number = (int) $number;
     $this->depth = (int) $depth;
     $this->move = new awSide();
     $this->drawPercent = $drawPercent;
     $this->noData = $noData;
     if (!$this->drawPercent) {
         $GLOBALS['jpegGraph'] = true;
     }
     // Hide vertical grid
     $this->grid->hideVertical(TRUE);
 }