本文整理汇总了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;
}
示例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);
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}