Method |
Description |
|
Axes ( ) |
Draws bar or line graph axes |
|
BuildGuideline ( &$line, &$lines, &$text, &$path, &$d ) |
Adds a single guideline and its title to content |
|
CalcAxes ( ) |
Calculates the effect of axes, applying to padding |
|
CalcGrid ( ) |
Calculates the position of grid lines |
|
CalcGuidelines ( $g = null ) |
Converts guideline options to more useful member variables |
|
ClampHorizontal ( $val ) |
|
|
ClampVertical ( $val ) |
clamps a value to the grid boundaries |
|
ClipGrid ( &$attr ) |
Returns a clipping path for the grid |
|
DOverlap ( $style, $size ) |
Calculates the overlap of a division or subdivision |
|
DivisionOverlap ( ) |
Returns the amount of overlap the divisions and subdivisions use |
|
DivisionsPositions ( $style, $style_default, $size, $size_default, $fullsize, $start, $axis_offset ) |
Returns the position and size of divisions |
|
FindLongestAxisLabel ( $length_x, $length_y ) |
Determines the longest axis labels for the given axis lengths |
|
FindSubdiv ( $grid_div, $u, $min, $min_unit, $fixed ) |
Find the subdivision size |
|
GetAxes ( $ends, &$x_len, &$y_len ) |
Returns the X and Y axis class instances as a list |
|
GetAxisEnds ( ) |
Returns an array containing the value and key axis min and max |
|
GetGridPoints ( $length, $spacing, $start, $direction, $zero, $unit_size, $uneven ) |
Returns the grid points as an associative array:
array($value => $position) |
|
GetGridSubdivisions ( &$points, $spacing, $direction ) |
Returns the grid subdivision points as an array |
|
GetHorizontalCount ( ) |
Subclasses can override this for non-linear graphs |
|
GetLongestKey ( ) |
Returns the key that takes up the most space |
|
Grid ( ) |
Draws the grid behind the bar / line graph |
|
GridLines ( $path, $colour, $dash, $fill = null ) |
Returns a set of gridlines |
|
GridPosition ( $key, $ikey ) |
Returns the grid position for a bar or point, or NULL if not on grid
$key = actual value array index
$ikey = integer position in array |
|
GuidelinePath ( $axis, $value, $depth, &$x, &$y, &$w, &$h ) |
Creates the path data for a guideline and sets the dimensions |
|
Guidelines ( $depth ) |
Returns the elements to draw the guidelines |
|
HLabel ( &$attribs ) |
Returns the horizontal axis label |
|
LabelAdjustment ( $longest_v = 1000, $longest_h = 100 ) |
Modifies the graph padding to allow room for labels |
|
Labels ( $axis_text = '' ) |
Returns the labels grouped with the provided axis division labels |
|
NumString ( $n ) |
Converts number to string |
|
SetGridDimensions ( ) |
Sets up grid width and height to fill padded area |
|
UpdateAndUnset ( &$var, &$array, $key ) |
Updates $var with $array[$key] and removes it from array |
|
VLabel ( &$attribs ) |
Returns the vertical axis label |
|
XAxis ( $yoff ) |
Returns the X axis SVG fragment |
|
XAxisDivisions ( &$points, $style, $style_default, $size, $size_default, $yoff ) |
Returns X-axis divisions as a path |
|
XAxisText ( &$points, $xoff, $yoff, $angle ) |
Returns the X-axis text fragment |
|
YAxis ( $xoff ) |
Returns the Y axis SVG fragment |
|
YAxisDivisions ( &$points, $style, $style_default, $size, $size_default, $xoff ) |
Returns Y-axis divisions as a path |
|
YAxisText ( &$points, $xoff, $yoff, $angle ) |
Returns the Y-axis text fragment |
|