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); }
function OFC_Charts_Line() { parent::OFC_Charts_Base(); $this->type = 'line'; }
function OFC_Charts_Area() { parent::OFC_Charts_Base(); $this->type = 'area'; }
function OFC_Charts_Pie() { parent::OFC_Charts_Base(); $this->type = 'pie'; }
function OFC_Charts_Bar() { parent::OFC_Charts_Base(); $this->type = 'bar'; }
function OFC_Charts_Shape() { parent::OFC_Charts_Base(); $this->type = 'shape'; }
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'; }
function OFC_Charts_Arrow() { parent::OFC_Charts_Base(); $this->type = 'arrow'; }