本文整理匯總了PHP中Plot::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Plot::__construct方法的具體用法?PHP Plot::__construct怎麽用?PHP Plot::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Plot
的用法示例。
在下文中一共展示了Plot::__construct方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: LinePlot
function LinePlot($datay, $datax = false)
{
parent::__construct($datay, $datax);
$this->mark = new PlotMark();
$this->color = ColorFactory::getColor();
$this->fill_color = $this->color;
}
示例2:
function __construct($datay, $datax = false)
{
if (count($datay) % $this->iTupleSize) {
JpGraphError::RaiseL(21001, $this->iTupleSize);
//('Data values for Stock charts must contain an even multiple of '.$this->iTupleSize.' data points.');
}
parent::__construct($datay, $datax);
$this->numpoints /= $this->iTupleSize;
}
示例3: __construct
public function __construct($datay, $datax, $angles)
{
if (count($datax) != count($datay)) {
Util\JpGraphError::RaiseL(20001);
}
//("Fieldplots must have equal number of X and Y points.");
if (count($datax) != count($angles)) {
Util\JpGraphError::RaiseL(20002);
}
//("Fieldplots must have an angle specified for each X and Y points.");
$this->iAngles = $angles;
parent::__construct($datay, $datax);
$this->value->SetAlign('center', 'center');
$this->value->SetMargin(15);
$this->arrow = new FieldArrow();
}
示例4: PlotMark
function __construct($datay, $datax = false)
{
if (count($datax) != count($datay) && is_array($datax)) {
JpGraphError::RaiseL(20003);
//("Scatterplot must have equal number of X and Y points.");
}
parent::__construct($datay, $datax);
$this->mark = new PlotMark();
$this->mark->SetType(MARK_SQUARE);
$this->mark->SetColor($this->color);
$this->value->SetAlign('center', 'center');
$this->value->SetMargin(0);
$this->link = new LineProperty(1, 'black', 'solid');
$this->link->iShow = false;
}
示例5:
function __construct($datay, $datax = false)
{
parent::__construct($datay, $datax);
++$this->numpoints;
}
示例6: __construct
/**
* Constructor
*/
public function __construct()
{
$sportid = strlen(Request::param('sportid')) > 0 ? Request::param('sportid') : Configuration::General()->runningSport();
$this->Year = $this->getRequestedYear();
$this->Sport = new Sport($sportid);
parent::__construct($this->getCSSid(), 800, 500);
$this->init();
$this->addAverage();
}
示例7: __construct
public function __construct($datay, $datax = false)
{
parent::__construct($datay, $datax);
$this->numpoints /= 2;
}