[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
[Code source] [Imprimer] [Statistiques]
Image_Graph - PEAR PHP OO Graph Rendering Utility. PHP versions 4 and 5
Author: | Jesper Veggerby <pear.nosey@veggerby.dk> |
Copyright: | Copyright (C) 2003, 2004 Jesper Veggerby Hansen |
License: | http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 |
Version: | CVS: $Id: Dataset.php,v 1.10 2005/08/24 20:35:55 nosey Exp $ |
Poids: | 483 lignes (12 kb) |
Inclus ou requis: | 3 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
Image_Graph_Dataset:: (26 méthodes):
Image_Graph_Dataset()
setName()
addPoint()
count()
_getPointX()
_getPointY()
_getPointID()
_getPointData()
minimumX()
maximumX()
minimumY()
maximumY()
first()
last()
_setMinimumX()
_setMaximumX()
_setMinimumY()
_setMaximumY()
_stepX()
_stepY()
_reset()
_nearby()
_next()
_averageY()
_median()
_medianY()
Classe: Image_Graph_Dataset - X-Ref
Data set used to represent a data collection to plot in a chartImage_Graph_Dataset() X-Ref |
Image_Graph_Dataset [Constructor] |
setName($name) X-Ref |
Sets the name of the data set, used for legending param: string $name The name of the dataset |
addPoint($x, $y = false, $ID = false) X-Ref |
Add a point to the dataset $ID can contain either the ID of the point, i.e. 'DK', 123, 'George', etc. or it can contain values used for creation of the HTML image map. This is achieved using is an an associated array with the following values: 'url' The URL to create the link to 'alt' [optional] The alt text on the link 'target' [optional] The target of the link 'htmltags' [optional] An associated array with html tags (tag as key), fx. 'onMouseOver' => 'history.go(-1);', 'id' => 'thelink' param: int $x The X value to add param: int $y The Y value to add, can be omited param: var $ID The ID of the point |
count() X-Ref |
The number of values in the dataset return: int The number of values in the dataset |
_getPointX($x) X-Ref |
Gets a X point from the dataset param: var $x The variable to return an X value from, fx in a vector return: var The X value of the variable |
_getPointY($x) X-Ref |
Gets a Y point from the dataset param: var $x The variable to return an Y value from, fx in a vector return: var The Y value of the variable |
_getPointID($x) X-Ref |
Gets a ID from the dataset param: var $x The variable to return an Y value from, fx in a vector return: var The ID value of the variable |
_getPointData($x) X-Ref |
Gets point data from the dataset param: var $x The variable to return an Y value from, fx in a vector return: array The data for the point |
minimumX() X-Ref |
The minimum X value return: var The minimum X value |
maximumX() X-Ref |
The maximum X value return: var The maximum X value |
minimumY() X-Ref |
The minimum Y value return: var The minimum Y value |
maximumY() X-Ref |
The maximum Y value return: var The maximum Y value |
first() X-Ref |
The first point return: array The last point |
last() X-Ref |
The last point return: array The first point |
_setMinimumX($value) X-Ref |
The minimum X value param: var $value The minimum X value |
_setMaximumX($value) X-Ref |
The maximum X value param: var $value The maximum X value |
_setMinimumY($value) X-Ref |
The minimum Y value param: var $value The minimum X value |
_setMaximumY($value) X-Ref |
The maximum Y value param: var $value The maximum X value |
_stepX() X-Ref |
The interval between 2 adjacent X values return: var The interval |
_stepY() X-Ref |
The interval between 2 adjacent Y values return: var The interval |
_reset() X-Ref |
Reset the intertal dataset pointer return: var The first X value |
_nearby($step = 0) X-Ref |
Get a point close to the internal pointer param: int Step Number of points next to the internal pointer, negative return: array The point |
_next() X-Ref |
Get the next point the internal pointer refers to and advance the pointer return: array The next point |
_averageY() X-Ref |
Get the average of the dataset's Y points return: var The Y-average across the dataset |
_median($data, $quartile = 'second') X-Ref |
Get the median of the array passed Y points param: array $data The data-array to get the median from param: int $quartile The quartile to return the median from return: var The Y-median across the dataset from the specified quartile |
_medianY($quartile = 'second') X-Ref |
Get the median of the datasets Y points param: int $quartile The quartile to return the median from return: var The Y-median across the dataset from the specified quartile |
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |