|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Abstract Chart generator base class. More...
Inheritance diagram for ilChart:
Collaboration diagram for ilChart:Public Member Functions | |
| getDataInstance ($a_type=null) | |
| Get data series instance. More... | |
| setSize ($a_x, $a_y) | |
| Set chart size. More... | |
| addData (ilChartData $a_series, $a_idx=null) | |
| Add data series. More... | |
| setLegend (ilChartLegend $a_legend) | |
| Set chart legend. More... | |
| setColors ($a_values) | |
| Set colors. More... | |
| getColors () | |
| Get colors. More... | |
| setShadow ($a_value) | |
| Set shadow. More... | |
| getShadow () | |
| Get shadow. More... | |
| setAutoResize ($a_value) | |
| Toggle auto-resizing on window resize/redraw. More... | |
| setStacked ($a_value) | |
| Toggle stacking. More... | |
| parseGlobalOptions (stdClass $a_options) | |
| Convert (global) properties to flot config. More... | |
| getHTML () | |
| Render. More... | |
Static Public Member Functions | |
| static | getInstanceByType ($a_type, $a_id) |
| Get type instance. More... | |
| static | isValidColor ($a_value) |
| Validate html color code. More... | |
| static | renderColor ($a_value, $a_opacity=1) |
| Render html color code. More... | |
Data Fields | |
| const | TYPE_GRID = 1 |
| const | TYPE_PIE = 2 |
| const | TYPE_SPIDER = 3 |
Protected Member Functions | |
| __construct ($a_id) | |
| Constructor. More... | |
| isValidDataType (ilChartData $a_series) | |
| Validate data series. More... | |
| isValid () | |
| Basic validation. More... | |
| initJS () | |
| Init JS script files. More... | |
| addCustomJS () | |
| Add type-specific JS script. More... | |
Protected Attributes | |
| $id | |
| $width | |
| $height | |
| $data | |
| $legend | |
| $shadow | |
| $colors | |
| $auto_resize | |
| $stacked | |
|
protected |
Constructor.
| string | $a_id |
Reimplemented in ilChartGrid.
Definition at line 34 of file class.ilChart.php.
References setShadow().
Here is the call graph for this function:
|
protected |
Add type-specific JS script.
Reimplemented in ilChartPie, and ilChartSpider.
Definition at line 277 of file class.ilChart.php.
Referenced by initJS().
Here is the caller graph for this function:| ilChart::addData | ( | ilChartData | $a_series, |
$a_idx = null |
|||
| ) |
Add data series.
| ilChartData | $a_series | |
| mixed | $a_id |
Definition at line 114 of file class.ilChart.php.
References $data, and isValidDataType().
Here is the call graph for this function:| ilChart::getColors | ( | ) |
Get colors.
Definition at line 158 of file class.ilChart.php.
References $colors.
Referenced by getHTML().
Here is the caller graph for this function:
|
abstract |
Get data series instance.
Reimplemented in ilChartGrid, ilChartPie, and ilChartSpider.
| ilChart::getHTML | ( | ) |
Render.
Definition at line 295 of file class.ilChart.php.
References $chart, $colors, $ret, $series, getColors(), getShadow(), initJS(), isValid(), parseGlobalOptions(), and renderColor().
Here is the call graph for this function:
|
static |
Get type instance.
| int | $a_type | |
| string | $a_id |
Definition at line 49 of file class.ilChart.php.
References $a_type, TYPE_GRID, TYPE_PIE, and TYPE_SPIDER.
Referenced by ilPollBlockGUI\fillRow(), ilSessionStatisticsGUI\getChart(), SurveyMatrixQuestionEvaluation\getChart(), SurveyMetricQuestionEvaluation\getChart(), SurveyQuestionEvaluation\getChart(), ilPersonalSkillsGUI\getGapAnalysisHTML(), ilLPObjectStatisticsDailyTableGUI\getGraph(), ilLPObjectStatisticsLPTableGUI\getGraph(), ilLPObjectStatisticsTableGUI\getGraph(), ilLPObjectStatisticsTypesTableGUI\getGraph(), and ilWikiStatGUI\renderGraph().
Here is the caller graph for this function:| ilChart::getShadow | ( | ) |
Get shadow.
Definition at line 222 of file class.ilChart.php.
References $shadow.
Referenced by getHTML().
Here is the caller graph for this function:
|
protected |
Init JS script files.
Definition at line 250 of file class.ilChart.php.
References $tpl, addCustomJS(), and iljQueryUtil\initjQuery().
Referenced by getHTML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Basic validation.
Definition at line 86 of file class.ilChart.php.
Referenced by getHTML().
Here is the caller graph for this function:
|
static |
Validate html color code.
| string | $a_value |
Definition at line 169 of file class.ilChart.php.
Referenced by ilChartLegend\setBackground(), ilChartData\setFill(), and ilChartLegend\setLabelBorder().
Here is the caller graph for this function:
|
abstractprotected |
Validate data series.
Reimplemented in ilChartGrid, ilChartPie, and ilChartSpider.
Referenced by addData().
Here is the caller graph for this function:| ilChart::parseGlobalOptions | ( | stdClass | $a_options | ) |
Convert (global) properties to flot config.
| object | $a_options |
Reimplemented in ilChartGrid, ilChartPie, and ilChartSpider.
Definition at line 287 of file class.ilChart.php.
Referenced by getHTML().
Here is the caller graph for this function:
|
static |
Render html color code.
| string | $a_value | |
| float | $a_opacity |
Definition at line 188 of file class.ilChart.php.
Referenced by getHTML(), ilChartData\parseData(), ilChartDataSpider\parseData(), ilChartSpider\parseGlobalOptions(), ilChartDataPie\parseGlobalOptions(), ilChartDataSpider\parseGlobalOptions(), and ilChartLegend\parseOptions().
Here is the caller graph for this function:| ilChart::setAutoResize | ( | $a_value | ) |
Toggle auto-resizing on window resize/redraw.
| bool | $a_value |
Definition at line 232 of file class.ilChart.php.
| ilChart::setColors | ( | $a_values | ) |
Set colors.
| array | $a_values |
Definition at line 142 of file class.ilChart.php.
| ilChart::setLegend | ( | ilChartLegend | $a_legend | ) |
Set chart legend.
| ilChartLegend | $a_legend |
Definition at line 132 of file class.ilChart.php.
Referenced by ilChartPie\parseGlobalOptions().
Here is the caller graph for this function:| ilChart::setShadow | ( | $a_value | ) |
Set shadow.
| int | $a_value |
Definition at line 212 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 101 of file class.ilChart.php.
| ilChart::setStacked | ( | $a_value | ) |
Toggle stacking.
| bool | $a_value |
Definition at line 242 of file class.ilChart.php.
|
protected |
Definition at line 22 of file class.ilChart.php.
|
protected |
Definition at line 21 of file class.ilChart.php.
Referenced by getColors(), and getHTML().
|
protected |
Definition at line 18 of file class.ilChart.php.
Referenced by addData().
|
protected |
Definition at line 17 of file class.ilChart.php.
|
protected |
Definition at line 15 of file class.ilChart.php.
|
protected |
Definition at line 19 of file class.ilChart.php.
Referenced by ilChartPie\parseGlobalOptions().
|
protected |
Definition at line 20 of file class.ilChart.php.
Referenced by getShadow().
|
protected |
Definition at line 23 of file class.ilChart.php.
|
protected |
Definition at line 16 of file class.ilChart.php.
| const ilChart::TYPE_GRID = 1 |
Definition at line 25 of file class.ilChart.php.
Referenced by ilSessionStatisticsGUI\getChart(), SurveyMatrixQuestionEvaluation\getChart(), SurveyMetricQuestionEvaluation\getChart(), SurveyQuestionEvaluation\getChart(), ilLPObjectStatisticsDailyTableGUI\getGraph(), ilLPObjectStatisticsLPTableGUI\getGraph(), ilLPObjectStatisticsTableGUI\getGraph(), ilLPObjectStatisticsTypesTableGUI\getGraph(), getInstanceByType(), and ilWikiStatGUI\renderGraph().
| const ilChart::TYPE_PIE = 2 |
Definition at line 26 of file class.ilChart.php.
Referenced by getInstanceByType().
| const ilChart::TYPE_SPIDER = 3 |
Definition at line 27 of file class.ilChart.php.
Referenced by ilPersonalSkillsGUI\getGapAnalysisHTML(), and getInstanceByType().