[ 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: Plot.php,v 1.20 2006/02/28 22:33:00 nosey Exp $ |
Poids: | 824 lignes (28 kb) |
Inclus ou requis: | 13 fois |
Référencé: | 0 fois |
Nécessite: | 1 fichier Image/Graph/Plotarea/Element.php |
Image_Graph_Plot:: (19 méthodes):
Image_Graph_Plot()
setTitle()
_mergeData()
_setAxisY()
setMarker()
setDataSelector()
_getMarkerData()
_drawMarker()
_minimumX()
_maximumX()
_minimumY()
_maximumY()
_pointX()
_pointY()
_updateCoords()
dataset()
_getTotals()
_drawLegendSample()
_legendSample()
Classe: Image_Graph_Plot - X-Ref
Framework for a chartImage_Graph_Plot(& $dataset, $multiType = 'normal', $title = '') X-Ref |
PlotType [Constructor] Valid values for multiType are: 'normal' Plot is normal, multiple datasets are displayes next to one another 'stacked' Datasets are stacked on top of each other 'stacked100pct' Datasets are stacked and displayed as percentages of the total sum I no title is specified a default is used, which is basically the plot type (fx. for a 'Image_Graph_Plot_Smoothed_Area' default title is 'Smoothed Area') param: Image_Graph_Dataset $dataset The data set (value containter) to param: string $multiType The type of the plot param: string $title The title of the plot (used for legends, |
setTitle($title) X-Ref |
Sets the title of the plot, used for legend param: string $title The title of the plot |
_mergeData($point, $canvasData) X-Ref |
Parses the URL mapping data in the point and adds it to the parameter array used by Image_Canvas param: array $point The data point (from the dataset) param: array $canvasData The The for the canvas method return: array The union of the canvas data points and the appropriate points for the dataset |
_setAxisY($axisY) X-Ref |
Sets the Y axis to plot the data param: int $axisY The Y axis (either IMAGE_GRAPH_AXIS_Y / 'y' or |
setMarker(& $marker) X-Ref |
Sets the marker to 'display' data points on the graph param: Marker $marker The marker |
setDataSelector(& $dataSelector) X-Ref |
Sets the dataselector to specify which data should be displayed on the plot as markers and which are not param: DataSelector $dataSelector The dataselector |
_getMarkerData($point, $nextPoint, $prevPoint, & $totals) X-Ref |
Calculate marker point data param: array Point The point to calculate data for param: array NextPoint The next point param: array PrevPoint The previous point param: array Totals The pre-calculated totals, if needed return: array An array containing marker point data |
_drawMarker() X-Ref |
Draws markers on the canvas |
_minimumX() X-Ref |
Get the minimum X value from the dataset return: double The minimum X value |
_maximumX() X-Ref |
Get the maximum X value from the dataset return: double The maximum X value |
_minimumY() X-Ref |
Get the minimum Y value from the dataset return: double The minimum Y value |
_maximumY() X-Ref |
Get the maximum Y value from the dataset return: double The maximum Y value |
_pointX($point) X-Ref |
Get the X pixel position represented by a value param: double $point The value to get the pixel-point for return: double The pixel position along the axis |
_pointY($point) X-Ref |
Get the Y pixel position represented by a value param: double $point the value to get the pixel-point for return: double The pixel position along the axis |
_updateCoords() X-Ref |
Update coordinates |
dataset() X-Ref |
Get the dataset return: Image_Graph_Dataset The dataset(s) |
_getTotals() X-Ref |
Calulate totals return: array An associated array with the totals |
_drawLegendSample($x0, $y0, $x1, $y1) X-Ref |
Perform the actual drawing on the legend. param: int $x0 The top-left x-coordinate param: int $y0 The top-left y-coordinate param: int $x1 The bottom-right x-coordinate param: int $y1 The bottom-right y-coordinate |
_legendSample(&$param) X-Ref |
Draw a sample for use with legend param: array $param The parameters for the legend |
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |