Ejemplo n.º 1
0
 /**
  * Creates a new bar chart.
  *
  * @param integer width of the image
  * @param integer height of the image
  */
 protected function BarChart($width, $height)
 {
     parent::Chart($width, $height);
     // Initialize the bounds
     $this->bound = new Bound();
     $this->bound->setLowerBound(0);
 }
Ejemplo n.º 2
0
 /**
  * Creates a new pie chart
  *
  * @access	public
  * @param	integer		width of the image
  * @param	integer		height of the image
  */
 function PieChart($width = 600, $height = 250)
 {
     parent::Chart($width, $height);
     $this->setMargin(5);
     $this->setLabelMarginLeft(30);
     $this->setLabelMarginRight(30);
     $this->setLabelMarginTop(50);
     $this->setLabelMarginBottom(30);
     $this->setLabelMarginCenter(20);
     $this->setPieRatio(0.55);
     $this->labelBoxWidth = 15;
     $this->labelBoxHeight = 15;
 }
Ejemplo n.º 3
0
 /**
  * Creates a new pie chart
  *
  * @access	public
  * @param	integer		width of the image
  * @param	integer		height of the image
  * @pie_sort boolean - added 21 May 2007 - sorting of points in chart
  */
 function PieChart($width = 600, $height = 250, $pie_sort = true, $title = '')
 {
     parent::Chart($width, $height);
     $this->pie_sort = $pie_sort;
     $this->setMargin(5);
     $this->setLabelMarginLeft(30);
     $this->setLabelMarginRight(30);
     if ($title == 'no_title') {
         $this->setLabelMarginTop(10);
     } else {
         $this->setLabelMarginTop(50);
     }
     $this->setLabelMarginBottom(30);
     $this->setLabelMarginCenter(20);
     $this->setPieRatio(0.55);
     $this->labelBoxWidth = 15;
     $this->labelBoxHeight = 15;
 }
Ejemplo n.º 4
0
 /**
  * Creates a new bar chart
  *
  * @access	protected
  * @param	integer		width of the image
  * @param	integer		height of the image
  */
 function BarChart($width, $height)
 {
     parent::Chart($width, $height);
     $this->setMargin(5);
     $this->setLowerBound(0);
 }
Ejemplo n.º 5
0
 function Chart_Ohlc(&$ch_array, $param)
 {
     parent::Chart($ch_array, $param);
     $this->ohcl_type = $param["ohcl_type"];
     $this->sleg = "Series";
 }
Ejemplo n.º 6
0
 function BarChart()
 {
     Chart::Chart();
     $this->barwidth = 3;
     $this->barspace = 3;
 }
Ejemplo n.º 7
0
 /**
  * Constructor of a pie chart.
  *
  * @param integer width of the image
  * @param integer height of the image
  */
 public function PieChart($width = 430, $height = 250)
 {
     parent::Chart($width, $height);
     $this->plot->setGraphPadding(new Padding(15, 10, 30, 30));
 }
 function BoxChart()
 {
     Chart::Chart();
     $this->boxwidth = 18;
     $this->boxspace = 6;
     $this->boxmiddle = 9;
     //      $this->boxwidth = 17;
     //      $this->boxspace = 5;
     //      $this->boxmiddle = 8;
     $this->maxboxes = 20;
 }
Ejemplo n.º 9
0
 /**
  * Constructor of a pie chart.
  *
  * @param integer width of the image
  * @param integer height of the image
  */
 public function PieChart($width = 600, $height = 250)
 {
     parent::Chart($width, $height);
     $this->plot->setGraphPadding(new Padding(-30, 1, 1, 1));
 }
Ejemplo n.º 10
0
 function BoxChart()
 {
     Chart::Chart();
     $this->boxwidth = 20;
     $this->boxspace = 8;
     $this->boxmiddle = 10;
     $this->maxboxes = 16;
 }