Public Member Functions | |
| __construct () | |
| Create a new Sparkline instance. | |
| set_image_border ($top, $right=null, $bottom=null, $left=null) | |
| Set the border of the image. | |
Protected Member Functions | |
| get_scaled_values () | |
| Return a list of all values, scaled to the current scale factor and rounded to integers. | |
Definition at line 17 of file sparkline.lib.php.
| AnewtSparklineImage::get_scaled_values | ( | ) | [protected] |
Return a list of all values, scaled to the current scale factor and rounded to integers.
Definition at line 63 of file sparkline.lib.php.
| AnewtSparklineImage::set_image_border | ( | $ | top, | |
| $ | right = null, |
|||
| $ | bottom = null, |
|||
| $ | left = null | |||
| ) |
Set the border of the image.
Omission of values works just like CSS. Note that something like $image->set('image-border', 3, null, 4, 2) doesn't work. This is intentional, since it makes no sense for a shorthand method. Single values can be specified using the image-border-top, image-border-right, image-border-bottom, and image-border-left properties.
| $top | Top image border | |
| $right | Right image border (optional) | |
| $bottom | Bottom image border (optional) | |
| $left | Left image border (optional) |
Definition at line 89 of file sparkline.lib.php.
1.5.9