Exemple #1
0
 function OFC_Charts_Scatter($colour, $dot_size)
 {
     parent::OFC_Charts_Base();
     $this->type = 'scatter';
     $this->set_colour($colour);
     $this->set_dot_size($dot_size);
 }
 function OFC_Charts_Pie()
 {
     parent::OFC_Charts_Base();
     $this->type = 'pie';
     $this->colours = array("#d01f3c", "#356aa0", "#C79810");
     $this->alpha = 0.6;
     $this->border = 2;
     $this->values = array(2, 3, new OFC_Charts_Pie_Value(6.5, 'hello (6.5)'));
 }
 /**
  * 构造函数
  *
  * @param string $colour
  * @param integer $dotSize
  */
 public function __construct($colour = null, $dotSize = 5)
 {
     parent::__construct();
     $this->type = 'scatter';
     if (isset($colour)) {
         $this->setColour($colour);
     }
     $this->setDotSize($dotSize);
 }
Exemple #4
0
 function OFC_Charts_Line()
 {
     parent::OFC_Charts_Base();
     $this->type = 'line';
 }
 function OFC_Charts_Area()
 {
     parent::OFC_Charts_Base();
     $this->type = 'area';
 }
Exemple #6
0
 function OFC_Charts_Pie()
 {
     parent::OFC_Charts_Base();
     $this->type = 'pie';
 }
Exemple #7
0
 function OFC_Charts_Bar()
 {
     parent::OFC_Charts_Base();
     $this->type = 'bar';
 }
Exemple #8
0
 function OFC_Charts_Shape()
 {
     parent::OFC_Charts_Base();
     $this->type = 'shape';
 }
Exemple #9
0
 function OFC_Charts_Bar_Horizontal()
 {
     parent::OFC_Charts_Base();
     $this->type = 'hbar';
 }
 /**
  * 构造函数
  */
 public function __construct()
 {
     parent::__construct();
     $this->type = 'area';
     $this->setFillAlpha(0.35);
 }
 /**
  * 构造函数
  */
 public function __construct()
 {
     parent::__construct();
     $this->type = 'pie';
 }
Exemple #12
0
 function OFC_Charts_Arrow()
 {
     parent::OFC_Charts_Base();
     $this->type = 'arrow';
 }