ILIAS
release_4-3 Revision
|
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. | |
getHTML () | |
Render (flot only currently) | |
setYAxisToInteger ($a_status) | |
setXAxisToInteger ($a_status) |
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 |
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 35 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 88 of file class.ilChart.php.
References $data.
ilChart::getAllRenderers | ( | ) |
Get all available renderers.
Definition at line 64 of file class.ilChart.php.
Referenced by setRenderer().
ilChart::getColors | ( | ) |
Get colors.
Definition at line 193 of file class.ilChart.php.
References $colors.
Referenced by getHTML().
ilChart::getHTML | ( | ) |
Render (flot only currently)
Definition at line 223 of file class.ilChart.php.
References $colors, $legend, $ticks, $tpl, $width, getColors(), getShadow(), getTicks(), iljQueryUtil\initjQuery(), and renderColor().
ilChart::getShadow | ( | ) |
Get shadow.
Definition at line 167 of file class.ilChart.php.
References $shadow.
Referenced by getHTML().
ilChart::getTicks | ( | ) |
Get ticks.
Definition at line 215 of file class.ilChart.php.
References $ticks.
Referenced by getHTML().
|
static |
Validate html color code.
string | $a_value |
Definition at line 114 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 133 of file class.ilChart.php.
Referenced by getHTML().
ilChart::setColors | ( | $a_values | ) |
Set colors.
array | $a_values |
Definition at line 177 of file class.ilChart.php.
ilChart::setLegend | ( | ilChartLegend | $a_legend | ) |
Set chart legend.
ilChartLegend | $a_legend |
Definition at line 103 of file class.ilChart.php.
ilChart::setRenderer | ( | $a_value | ) |
Set renderer.
string | $a_value |
Definition at line 51 of file class.ilChart.php.
References getAllRenderers().
Referenced by __construct().
ilChart::setShadow | ( | $a_value | ) |
Set shadow.
int | $a_value |
Definition at line 157 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 75 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 205 of file class.ilChart.php.
ilChart::setXAxisToInteger | ( | $a_status | ) |
Definition at line 413 of file class.ilChart.php.
Referenced by __construct().
ilChart::setYAxisToInteger | ( | $a_status | ) |
Definition at line 408 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 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().