/** * Creates a new horizontal bar chart. * * @param integer width of the image * @param integer height of the image */ public function HorizontalBarChart($width = 600, $height = 250) { parent::BarChart($width, $height); $this->emptyToFullRatio = 1 / 5; //$this->plot->setGraphPadding(new Padding(5, 30, 30, 50)); $this->plot->setGraphPadding(new Padding(-20, 5, 30, 60)); }
/** * Creates a new line chart * * @access public * @param integer width of the image * @param integer height of the image */ function LineChart($width = 600, $height = 250) { parent::BarChart($width, $height); $this->setLabelMarginLeft(50); $this->setLabelMarginRight(50); $this->setLabelMarginTop(40); $this->setLabelMarginBottom(50); }
/** * Creates a new horizontal bar chart * * @access public * @param integer width of the image * @param integer height of the image */ function HorizontalChart($width = 600, $height = 250) { parent::BarChart($width, $height); $this->setLabelMarginLeft(150); $this->setLabelMarginRight(30); $this->setLabelMarginTop(40); $this->setLabelMarginBottom(30); }
/** * Creates a new vertical bar chart * * @access public * @param integer width of the image * @param integer height of the image */ function VerticalChart($width = 600, $height = 300) { parent::BarChart($width, $height); $this->setLabelMarginLeft(50); $this->setLabelMarginRight(30); $this->setLabelMarginTop(40); $this->setLabelMarginBottom(50); }
/** * Creates a new horizontal bar chart * * @access public * @param integer width of the image * @param integer height of the image */ function HorizontalChart($width = 600, $height = 250, $title = '') { parent::BarChart($width, $height); $this->setLabelMarginLeft(150); $this->setLabelMarginRight(30); if ($title == 'no_title') { $this->setLabelMarginTop(10); } else { $this->setLabelMarginTop(40); } $this->setLabelMarginBottom(30); }
/** * Creates a new vertical bar chart * * @param integer width of the image * @param integer height of the image */ public function VerticalBarChart($width = 600, $height = 250) { parent::BarChart($width, $height); $this->emptyToFullRatio = 1 / 4; $this->plot->setGraphPadding(new Padding(-10, 5, 70, 45)); }
/** * Creates a new line chart. * Line charts allow for XYDataSet and XYSeriesDataSet in order to plot several lines. * * @param integer width of the image * @param integer height of the image */ public function LineChart($width = 600, $height = 250) { parent::BarChart($width, $height); $this->plot->setGraphPadding(new Padding(5, 30, 50, 50)); }
/** * Creates a new horizontal bar chart. * * @param integer width of the image * @param integer height of the image */ public function revenueBarChart($width = 600, $height = 250) { parent::BarChart($width, $height); $this->emptyToFullRatio = 1 / 5; $this->plot->setGraphPadding(new Padding(5, 30, 30, 50)); }
/** * Creates a new vertical bar chart * * @param integer width of the image * @param integer height of the image */ public function VerticalBarChart($width = 600, $height = 250, $low = 0) { parent::BarChart($width, $height, $low); $this->emptyToFullRatio = 1 / 5; $this->plot->setGraphPadding(new Padding(5, 30, 50, 50)); }