ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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... | |
Private Member Functions | |
encodeaxis ($axis) | |
encodedata ($datasets) | |
Private Attributes | |
$x | |
$y | |
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.
integer | $x | X dimension. Default 800. |
integer | $y | Y dimension. Default 350. |
Definition at line 29 of file GoogleCharts.php.
|
private |
Definition at line 35 of file GoogleCharts.php.
References $axis.
Referenced by show(), and showPie().
|
private |
Definition at line 41 of file GoogleCharts.php.
References $datasets.
Referenced by show(), and showPie().
|
static |
|
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 144 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 79 of file GoogleCharts.php.
References $axis, $datasets, $maxes, $url, encodeaxis(), and encodedata().
sspmod_statistics_Graph_GoogleCharts::showPie | ( | $axis, | |
$datasets | |||
) |
Definition at line 110 of file GoogleCharts.php.
References $axis, $datasets, $url, encodeaxis(), and encodedata().
|
private |
Definition at line 14 of file GoogleCharts.php.
Referenced by __construct().
|
private |
Definition at line 19 of file GoogleCharts.php.
Referenced by __construct().