当前位置: 首页>>代码示例>>PHP>>正文


PHP Chart::Chart方法代码示例

本文整理汇总了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);
 }
开发者ID:abosmond,项目名称:simanis,代码行数:13,代码来源:BarChart.php

示例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;
 }
开发者ID:fevenor,项目名称:Dockerfile,代码行数:20,代码来源:PieChart.php

示例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;
 }
开发者ID:parkmi,项目名称:dolschool14,代码行数:26,代码来源:PieChart.php

示例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);
 }
开发者ID:fevenor,项目名称:Dockerfile,代码行数:13,代码来源:BarChart.php

示例5:

 function Chart_Ohlc(&$ch_array, $param)
 {
     parent::Chart($ch_array, $param);
     $this->ohcl_type = $param["ohcl_type"];
     $this->sleg = "Series";
 }
开发者ID:ryanblanchard,项目名称:Dashboard,代码行数:6,代码来源:charts.php

示例6: BarChart

 function BarChart()
 {
     Chart::Chart();
     $this->barwidth = 3;
     $this->barspace = 3;
 }
开发者ID:scoder,项目名称:benchmarksgame,代码行数:6,代码来源:lib_chart.php

示例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));
 }
开发者ID:rekysda,项目名称:akademik,代码行数:11,代码来源:PieChart.php

示例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;
 }
开发者ID:Byron,项目名称:benchmarksgame-cvs-mirror,代码行数:11,代码来源:lib_chartSVG.php

示例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));
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:11,代码来源:PieChart.php

示例10: BoxChart

 function BoxChart()
 {
     Chart::Chart();
     $this->boxwidth = 20;
     $this->boxspace = 8;
     $this->boxmiddle = 10;
     $this->maxboxes = 16;
 }
开发者ID:neoedmund,项目名称:benchmarksgame,代码行数:8,代码来源:lib_chartSVG.php


注:本文中的Chart::Chart方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。