本文整理汇总了PHP中Chart::Chart方法的典型用法代码示例。如果您正苦于以下问题:PHP Chart::Chart方法的具体用法?PHP Chart::Chart怎么用?PHP Chart::Chart使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Chart
的用法示例。
在下文中一共展示了Chart::Chart方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: BarChart
/**
* 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);
}
示例2: PieChart
/**
* 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;
}
示例3: PieChart
/**
* 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;
}
示例4: BarChart
/**
* 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);
}
示例5:
function Chart_Ohlc(&$ch_array, $param)
{
parent::Chart($ch_array, $param);
$this->ohcl_type = $param["ohcl_type"];
$this->sleg = "Series";
}
示例6: BarChart
function BarChart()
{
Chart::Chart();
$this->barwidth = 3;
$this->barspace = 3;
}
示例7: PieChart
/**
* 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));
}
示例8: BoxChart
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;
}
示例9: PieChart
/**
* 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));
}
示例10: BoxChart
function BoxChart()
{
Chart::Chart();
$this->boxwidth = 20;
$this->boxspace = 8;
$this->boxmiddle = 10;
$this->maxboxes = 16;
}