PHP Класс RadarGraph, GotCms

Наследование: extends LineGraph
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$arad
$grid_angles
$label_centre ends at N points + 1
$radius
$xc
$yc

Открытые методы

Метод Описание
Draw ( )

Защищенные методы

Метод Описание
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

Описание методов

CalcAxes() защищенный Метод

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

CalcGrid() защищенный Метод

Calculates the position of grid lines
protected CalcGrid ( )

CheckValues() защищенный Метод

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

Draw() публичный Метод

public Draw ( )

DrawLegendEntry() защищенный Метод

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

Grid() защищенный Метод

Draws the grid behind the graph
protected Grid ( )

GridPosition() защищенный Метод

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

LabelAdjustment() защищенный Метод

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

SetGridDimensions() защищенный Метод

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

VLabel() защищенный Метод

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

XAxis() защищенный Метод

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

XAxisDivisions() защищенный Метод

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

XAxisText() защищенный Метод

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

XGrid() защищенный Метод

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

YAxis() защищенный Метод

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

YAxisDivisions() защищенный Метод

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

YAxisText() защищенный Метод

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

YGrid() защищенный Метод

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

Описание свойств

$arad защищенное свойство

protected $arad

$grid_angles защищенное свойство

protected $grid_angles

$label_centre защищенное свойство

ends at N points + 1
protected $label_centre

$radius защищенное свойство

protected $radius

$xc защищенное свойство

protected $xc

$yc защищенное свойство

protected $yc