/** * Creates a new bar chart. * * @param integer width of the image * @param integer height of the image */ protected function __construct($width, $height) { parent::__construct($width, $height); // Initialize the bounds $this->bound = new Bound(); $this->bound->setLowerBound(0); }
/** * Constructor of a pie chart. * * @param integer width of the image * @param integer height of the image */ public function __construct($width = 600, $height = 250) { parent::__construct($width, $height); $this->plot->setGraphPadding(new Padding(15, 10, 30, 30)); }