本文整理汇总了PHP中JpGraph类的典型用法代码示例。如果您正苦于以下问题:PHP JpGraph类的具体用法?PHP JpGraph怎么用?PHP JpGraph使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了JpGraph类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($aDataX, $aDataY)
{
if (count($aDataX) !== count($aDataY)) {
JpGraph::Raise('LinearRegression: X and Y data array must be of equal length.');
}
$this->ix = $aDataX;
$this->iy = $aDataY;
}
开发者ID:amenadiel,项目名称:jpgraph,代码行数:8,代码来源:LinearRegression.php
示例2: AddY
function AddY($aN, $aPlot)
{
if ($aPlot == null) {
JpGraphError::RaiseL(25012);
//("Graph::AddYN() You tried to add a null plot to the graph.");
}
if (is_array($aPlot) && count($aPlot) > 0) {
$cl = $aPlot[0];
} else {
$cl = $aPlot;
}
if ($cl instanceof Text || class_exists('PlotLine', false) && $cl instanceof PlotLine || class_exists('PlotBand', false) && $cl instanceof PlotBand) {
JpGraph::RaiseL(25013);
//('You can only add standard plots to multiple Y-axis');
} else {
$this->ynplots[$aN][] = $aPlot;
}
if ($this->graph_theme) {
$this->graph_theme->SetupPlot($aPlot);
}
}
开发者ID:nbgmaster,项目名称:happify,代码行数:21,代码来源:jpgraph.php
示例3: AddY
function AddY($aN, &$aPlot)
{
if ($aPlot == null) {
JpGraphError::Raise("Graph::AddYN() You tried to add a null plot to the graph.");
}
if (is_array($aPlot) && count($aPlot) > 0) {
$cl = strtolower(get_class($aPlot[0]));
} else {
$cl = strtolower(get_class($aPlot));
}
if ($cl == 'text' || $cl == 'plotline' || $cl == 'plotband') {
JpGraph::Raise('You can only add standard plots to multiple Y-axis');
} else {
$this->ynplots[$aN][] =& $aPlot;
}
}
开发者ID:sudogem,项目名称:brcms,代码行数:16,代码来源:jpgraph.php
示例4: AddY
function AddY($aN, $aPlot)
{
if ($aPlot == null) {
JpGraphError::RaiseL(25012);
}
//("Graph::AddYN() You tried to add a null plot to the graph.");
if (is_array($aPlot) && count($aPlot) > 0) {
$cl = $aPlot[0];
} else {
$cl = $aPlot;
}
if ($cl instanceof Text || $cl instanceof PlotLine || class_exists('PlotBand', false) && $cl instanceof PlotBand) {
JpGraph::RaiseL(25013);
} else {
$this->ynplots[$aN][] = $aPlot;
}
}
开发者ID:pipporazzo,项目名称:achievo,代码行数:17,代码来源:jpgraph.php
示例5: AddY
function AddY($aN, &$aPlot)
{
if ($aPlot == null) {
JpGraphError::RaiseL(25012);
}
//("Graph::AddYN() You tried to add a null plot to the graph.");
if (is_array($aPlot) && count($aPlot) > 0) {
$cl = $aPlot[0];
} else {
$cl = $aPlot;
}
if (is_a($cl, 'Text') || is_a($cl, 'PlotLine') || is_a($cl, 'PlotBand')) {
JpGraph::RaiseL(25013);
} else {
$this->ynplots[$aN][] =& $aPlot;
}
}
开发者ID:illuminate3,项目名称:web2project,代码行数:17,代码来源:jpgraph.php
注:本文中的JpGraph类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论