PHP Class RadarGraph, GotCms

Inheritance: extends LineGraph
显示文件 Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Property Type Description
$arad
$grid_angles
$label_centre ends at N points + 1
$radius
$xc
$yc

Public Methods

Method Description
Draw ( )

Protected Methods

Method Description
CalcAxes ( $h_by_count = false, $bar = false ) Calculate the extra details for radar axes
CalcGrid ( ) Calculates the position of grid lines
CheckValues ( &$values ) Need at least two values and no negative values
DrawLegendEntry ( $set, $x, $y, $w, $h ) Return line and marker for legend
Grid ( ) Draws the grid behind the graph
GridPosition ( $key, $ikey ) Finds the grid position for radar graphs, returns NULL if not on graph
LabelAdjustment ( $longest_v = 1000, $longest_h = 100 ) Adjusts the spacing for labels on all sides
SetGridDimensions ( ) Sets the grid size as circumference x radius
VLabel ( &$attribs ) Returns what would be the vertical axis label
XAxis ( $yoff ) The X-axis is wrapped around the graph
XAxisDivisions ( &$points, $style, $style_default, $size, $size_default, $yoff ) Division marks around the graph
XAxisText ( &$points, $xoff, $yoff, $angle ) Text labels for the wrapped X-axis
XGrid ( &$x_points ) Draws radiating X grid lines
YAxis ( $xoff ) The Y-axis is at start angle
YAxisDivisions ( &$points, $style, $style_default, $size, $size_default, $xoff ) Draws Y-axis divisions at whatever angle the Y-axis is
YAxisText ( &$points, $xoff, $yoff, $angle ) Text labels for the Y-axis
YGrid ( &$y_points ) Draws concentric Y grid lines

Method Details

CalcAxes() protected method

Calculate the extra details for radar axes
protected CalcAxes ( $h_by_count = false, $bar = false )

CalcGrid() protected method

Calculates the position of grid lines
protected CalcGrid ( )

CheckValues() protected method

Need at least two values and no negative values
protected CheckValues ( &$values )

Draw() public method

public Draw ( )

DrawLegendEntry() protected method

Return line and marker for legend
protected DrawLegendEntry ( $set, $x, $y, $w, $h )

Grid() protected method

Draws the grid behind the graph
protected Grid ( )

GridPosition() protected method

Finds the grid position for radar graphs, returns NULL if not on graph
protected GridPosition ( $key, $ikey )

LabelAdjustment() protected method

Adjusts the spacing for labels on all sides
protected LabelAdjustment ( $longest_v = 1000, $longest_h = 100 )

SetGridDimensions() protected method

Sets the grid size as circumference x radius
protected SetGridDimensions ( )

VLabel() protected method

Returns what would be the vertical axis label
protected VLabel ( &$attribs )

XAxis() protected method

The X-axis is wrapped around the graph
protected XAxis ( $yoff )

XAxisDivisions() protected method

Division marks around the graph
protected XAxisDivisions ( &$points, $style, $style_default, $size, $size_default, $yoff )

XAxisText() protected method

Text labels for the wrapped X-axis
protected XAxisText ( &$points, $xoff, $yoff, $angle )

XGrid() protected method

Draws radiating X grid lines
protected XGrid ( &$x_points )

YAxis() protected method

The Y-axis is at start angle
protected YAxis ( $xoff )

YAxisDivisions() protected method

Draws Y-axis divisions at whatever angle the Y-axis is
protected YAxisDivisions ( &$points, $style, $style_default, $size, $size_default, $xoff )

YAxisText() protected method

Text labels for the Y-axis
protected YAxisText ( &$points, $xoff, $yoff, $angle )

YGrid() protected method

Draws concentric Y grid lines
protected YGrid ( &$y_points )

Property Details

$arad protected_oe property

protected $arad

$grid_angles protected_oe property

protected $grid_angles

$label_centre protected_oe property

ends at N points + 1
protected $label_centre

$radius protected_oe property

protected $radius

$xc protected_oe property

protected $xc

$yc protected_oe property

protected $yc