|
ILIAS
Release_4_2_x_branch Revision 61807
|
Chart generator. More...
Collaboration diagram for ilChart: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().
Here is the call graph for this function:| 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().
Here is the caller graph for this function:| ilChart::getColors | ( | ) |
Get colors.
Definition at line 193 of file class.ilChart.php.
References $colors.
Referenced by getHTML().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| ilChart::getShadow | ( | ) |
Get shadow.
Definition at line 167 of file class.ilChart.php.
References $shadow.
Referenced by getHTML().
Here is the caller graph for this function:| ilChart::getTicks | ( | ) |
Get ticks.
Definition at line 215 of file class.ilChart.php.
References $ticks.
Referenced by getHTML().
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:
|
staticprotected |
Render html color code.
| string | $a_value | |
| float | $a_opacity |
Definition at line 133 of file class.ilChart.php.
Referenced by getHTML().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChart::setShadow | ( | $a_value | ) |
Set shadow.
| int | $a_value |
Definition at line 157 of file class.ilChart.php.
Referenced by __construct().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| 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 414 of file class.ilChart.php.
Referenced by __construct().
Here is the caller graph for this function:| ilChart::setYAxisToInteger | ( | $a_status | ) |
Definition at line 409 of file class.ilChart.php.
Referenced by __construct().
Here is the caller graph for this function:
|
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().