ILIAS
Release_4_4_x_branch Revision 61816
|
Chart generator. More...
Public Member Functions | |
__construct ($a_id, $a_width=500, $a_height=500, $a_renderer="flot") | |
Constructor. | |
setRenderer ($a_value) | |
Set renderer. | |
getAllRenderers () | |
Get all available renderers. | |
setSize ($a_x, $a_y) | |
Set chart size. | |
addData (ilChartData $a_series, $a_idx=null) | |
Add data series. | |
setLegend (ilChartLegend $a_legend) | |
Set chart legend. | |
setShadow ($a_value) | |
Set shadow. | |
getShadow () | |
Get shadow. | |
setColors ($a_values) | |
Set colors. | |
getColors () | |
Get colors. | |
setTicks ($a_x, $a_y, $a_labeled=false) | |
Set ticks. | |
getTicks () | |
Get ticks. | |
setLegLabels ($a_val) | |
Set leg labels. | |
getLegLabels () | |
Get leg labels. | |
getHTML () | |
Render (flot only currently) | |
setYAxisToInteger ($a_status) | |
setXAxisToInteger ($a_status) | |
setYAxisMax ($a_val) | |
Set y axis max value. | |
getYAxisMax () | |
Get y axis max value. |
Static Public Member Functions | |
static | isValidColor ($a_value) |
Validate html color code. |
Static Protected Member Functions | |
static | renderColor ($a_value, $a_opacity=1) |
Render html color code. |
Protected Attributes | |
$id | |
$renderer | |
$width | |
$height | |
$data | |
$legend | |
$shadow | |
$colors | |
$ticks | |
$integer_axis | |
$leg_labels = array() | |
$y_max = 0 |
ilChart::__construct | ( | $a_id, | |
$a_width = 500 , |
|||
$a_height = 500 , |
|||
$a_renderer = "flot" |
|||
) |
Constructor.
@param string $a_id @param int $a_width @param int $a_height
string | $a_renderer |
Definition at line 37 of file class.ilChart.php.
References setRenderer(), setShadow(), setSize(), setXAxisToInteger(), and setYAxisToInteger().
ilChart::addData | ( | ilChartData | $a_series, |
$a_idx = null |
|||
) |
Add data series.
ilChartData | $a_series | |
mixed | $a_id |
Definition at line 90 of file class.ilChart.php.
References $data.
ilChart::getAllRenderers | ( | ) |
Get all available renderers.
Definition at line 66 of file class.ilChart.php.
Referenced by setRenderer().
ilChart::getColors | ( | ) |
Get colors.
Definition at line 195 of file class.ilChart.php.
References $colors.
Referenced by getHTML().
ilChart::getHTML | ( | ) |
Render (flot only currently)
Definition at line 245 of file class.ilChart.php.
References $colors, $legend, $options, $ret, $ticks, $tpl, $width, getColors(), getLegLabels(), getShadow(), getTicks(), getYAxisMax(), iljQueryUtil\initjQuery(), renderColor(), and ilUtil\shortenText().
ilChart::getLegLabels | ( | ) |
Get leg labels.
Definition at line 237 of file class.ilChart.php.
References $leg_labels.
Referenced by getHTML().
ilChart::getShadow | ( | ) |
Get shadow.
Definition at line 169 of file class.ilChart.php.
References $shadow.
Referenced by getHTML().
ilChart::getTicks | ( | ) |
Get ticks.
Definition at line 217 of file class.ilChart.php.
References $ticks.
Referenced by getHTML().
ilChart::getYAxisMax | ( | ) |
Get y axis max value.
Definition at line 517 of file class.ilChart.php.
References $y_max.
Referenced by getHTML().
|
static |
Validate html color code.
string | $a_value |
Definition at line 116 of file class.ilChart.php.
Referenced by ilChartLegend\setBackground(), ilChartData\setFill(), and ilChartLegend\setLabelBorder().
|
staticprotected |
Render html color code.
string | $a_value | |
float | $a_opacity |
Definition at line 135 of file class.ilChart.php.
Referenced by getHTML().
ilChart::setColors | ( | $a_values | ) |
Set colors.
array | $a_values |
Definition at line 179 of file class.ilChart.php.
ilChart::setLegend | ( | ilChartLegend | $a_legend | ) |
Set chart legend.
ilChartLegend | $a_legend |
Definition at line 105 of file class.ilChart.php.
ilChart::setLegLabels | ( | $a_val | ) |
Set leg labels.
array | $a_val | leg labels (array of strings) |
Definition at line 227 of file class.ilChart.php.
ilChart::setRenderer | ( | $a_value | ) |
Set renderer.
string | $a_value |
Definition at line 53 of file class.ilChart.php.
References getAllRenderers().
Referenced by __construct().
ilChart::setShadow | ( | $a_value | ) |
Set shadow.
int | $a_value |
Definition at line 159 of file class.ilChart.php.
Referenced by __construct().
ilChart::setSize | ( | $a_x, | |
$a_y | |||
) |
Set chart size.
int | $a_x | |
int | $a_y |
Definition at line 77 of file class.ilChart.php.
Referenced by __construct().
ilChart::setTicks | ( | $a_x, | |
$a_y, | |||
$a_labeled = false |
|||
) |
Set ticks.
int | array | $a_x | |
int | array | $a_y | |
bool | $a_labeled |
Definition at line 207 of file class.ilChart.php.
ilChart::setXAxisToInteger | ( | $a_status | ) |
Definition at line 497 of file class.ilChart.php.
Referenced by __construct().
ilChart::setYAxisMax | ( | $a_val | ) |
Set y axis max value.
float | $a_val | y axis max value |
Definition at line 507 of file class.ilChart.php.
ilChart::setYAxisToInteger | ( | $a_status | ) |
Definition at line 492 of file class.ilChart.php.
Referenced by __construct().
|
protected |
Definition at line 23 of file class.ilChart.php.
Referenced by getColors(), and getHTML().
|
protected |
Definition at line 20 of file class.ilChart.php.
Referenced by addData().
|
protected |
Definition at line 19 of file class.ilChart.php.
|
protected |
Definition at line 16 of file class.ilChart.php.
|
protected |
Definition at line 25 of file class.ilChart.php.
|
protected |
Definition at line 26 of file class.ilChart.php.
Referenced by getLegLabels().
|
protected |
Definition at line 21 of file class.ilChart.php.
Referenced by getHTML().
|
protected |
Definition at line 17 of file class.ilChart.php.
|
protected |
Definition at line 22 of file class.ilChart.php.
Referenced by getShadow().
|
protected |
Definition at line 24 of file class.ilChart.php.
Referenced by getHTML(), and getTicks().
|
protected |
Definition at line 18 of file class.ilChart.php.
Referenced by getHTML().
|
protected |
Definition at line 27 of file class.ilChart.php.
Referenced by getYAxisMax().