ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct ($x=800, $y=350) | |
Constructor. More... | |
show ($axis, $axispos, $datasets, $maxes) | |
Generate a Google Charts URL which points to a generated image. More... | |
showPie ($axis, $datasets) | |
Static Public Member Functions | |
static | extEncode ($values) |
static | roof ($max) |
Takes a input value, and generates a value that suits better as a max value on the Y-axis. More... | |
Data Fields | |
$y | |
Private Member Functions | |
encodeaxis ($axis) | |
encodedata ($datasets) | |
getFillArea ($datasets) | |
Return colors between multiple graphs... More... | |
Private Attributes | |
$x | |
Definition at line 9 of file GoogleCharts.php.
sspmod_statistics_Graph_GoogleCharts::__construct | ( | $x = 800 , |
|
$y = 350 |
|||
) |
Constructor.
Takes dimension of graph as parameters. X and Y.
$x | X dimension. Default 800. |
$y | Y dimension. Default 350. |
Definition at line 21 of file GoogleCharts.php.
|
private |
Definition at line 27 of file GoogleCharts.php.
References $axis.
Referenced by show(), and showPie().
|
private |
|
static |
|
private |
Return colors between multiple graphs...
Definition at line 64 of file GoogleCharts.php.
References $datasets, $i, and array.
|
static |
Takes a input value, and generates a value that suits better as a max value on the Y-axis.
In example 37.6 will not make a good max value, instead it will return 40. It will always return an equal or larger number than it gets as input.
Here is some test code: $foo = array(0, 2, 2.3, 2.6, 6, 10, 15, 98, 198, 256, 487, 563, 763, 801, 899, 999, 987, 198234.485, 283746); foreach ($foo AS $f) { echo '
' . $f . ' => ' . sspmod_statistics_Graph_GoogleCharts::roof($f); }
$max | Input value. |
Definition at line 154 of file GoogleCharts.php.
Referenced by sspmod_statistics_StatDataset\calculateMax().
sspmod_statistics_Graph_GoogleCharts::show | ( | $axis, | |
$axispos, | |||
$datasets, | |||
$maxes | |||
) |
Generate a Google Charts URL which points to a generated image.
More documentation on Google Charts here: http://code.google.com/apis/chart/
$axis | Axis |
$axpis | Axis positions |
$datasets | Datasets values |
$max | Max value. Will be the topmost value on the Y-axis. |
Definition at line 89 of file GoogleCharts.php.
References $axis, $datasets, $maxes, $url, encodeaxis(), and encodedata().
sspmod_statistics_Graph_GoogleCharts::showPie | ( | $axis, | |
$datasets | |||
) |
Definition at line 120 of file GoogleCharts.php.
References $axis, $datasets, $url, array, encodeaxis(), and encodedata().
|
private |
Definition at line 11 of file GoogleCharts.php.
Referenced by __construct().
sspmod_statistics_Graph_GoogleCharts::$y |
Definition at line 11 of file GoogleCharts.php.
Referenced by __construct().