|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ilChart:
Collaboration diagram for ilChart:Public Member Functions | |
| getDataInstance (int $a_type=null) | |
| Get data series instance. More... | |
| setSize (string $a_x, string $a_y) | |
| Set chart size. More... | |
| addData (ilChartData $a_series, ?int $a_idx=null) | |
| Add data series. More... | |
| setLegend (ilChartLegend $a_legend) | |
| setColors (array $a_values) | |
| getColors () | |
| setShadow (int $a_value) | |
| getShadow () | |
| setAutoResize (bool $a_value) | |
| Toggle auto-resizing on window resize/redraw. More... | |
| setStacked (bool $a_value) | |
| parseGlobalOptions (stdClass $a_options) | |
| Convert (global) properties to flot config. More... | |
| getHTML () | |
| Render. More... | |
Static Public Member Functions | |
| static | getInstanceByType (int $a_type, string $a_id) |
| static | isValidColor (string $a_value) |
| Validate html color code. More... | |
| static | renderColor (string $a_value, float $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 (string $a_id) | |
| 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 | |
| ilGlobalTemplateInterface | $tpl |
| string | $id = "" |
| string | $width = "" |
| string | $height = "" |
| array | $data = [] |
| ilChartLegend | $legend = null |
| int | $shadow = 0 |
| array | $colors = [] |
| bool | $auto_resize = false |
| bool | $stacked = false |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too. If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Abstract Chart generator base class
Definition at line 20 of file class.ilChart.php.
|
protected |
Definition at line 37 of file class.ilChart.php.
References $DIC, and setShadow().
Here is the call graph for this function:
|
protected |
Add type-specific JS script.
Definition at line 216 of file class.ilChart.php.
Referenced by initJS().
Here is the caller graph for this function:| ilChart::addData | ( | ilChartData | $a_series, |
| ?int | $a_idx = null |
||
| ) |
Add data series.
Definition at line 98 of file class.ilChart.php.
References $data, and isValidDataType().
Here is the call graph for this function:| ilChart::getColors | ( | ) |
Definition at line 126 of file class.ilChart.php.
References $colors.
Referenced by getHTML().
Here is the caller graph for this function:
|
abstract |
Get data series instance.
Referenced by getInstanceByType().
Here is the caller graph for this function:| ilChart::getHTML | ( | ) |
Render.
Definition at line 230 of file class.ilChart.php.
References $stacked, getColors(), getShadow(), initJS(), isValid(), and parseGlobalOptions().
Here is the call graph for this function:
|
static |
Definition at line 48 of file class.ilChart.php.
References getDataInstance(), and isValidDataType().
Referenced by SurveyMetricQuestionEvaluation\getChart(), SurveyMatrixQuestionEvaluation\getChart(), SurveyQuestionEvaluation\getChart(), ilSessionStatisticsGUI\getChart(), ilLPObjectStatisticsTypesTableGUI\getGraph(), ilLPObjectStatisticsDailyTableGUI\getGraph(), ilLPObjectStatisticsTableGUI\getGraph(), ilLPObjectStatisticsLPTableGUI\getGraph(), and ilWikiStatGUI\renderGraph().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChart::getShadow | ( | ) |
Definition at line 170 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 192 of file class.ilChart.php.
References $tpl, addCustomJS(), ilGlobalTemplateInterface\addJavaScript(), iljQueryUtil\initjQuery(), and ILIAS\UI\examples\Chart\Bar\Horizontal\stacked().
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 78 of file class.ilChart.php.
Referenced by getHTML().
Here is the caller graph for this function:
|
static |
Validate html color code.
Definition at line 134 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.
Referenced by addData(), and getInstanceByType().
Here is the caller graph for this function:| ilChart::parseGlobalOptions | ( | stdClass | $a_options | ) |
Convert (global) properties to flot config.
Definition at line 223 of file class.ilChart.php.
Referenced by getHTML().
Here is the caller graph for this function:
|
static |
Render html color code.
Definition at line 147 of file class.ilChart.php.
Referenced by ilChartDataSpider\parseData(), ilChartData\parseData(), ilChartDataSpider\parseGlobalOptions(), ilChartSpider\parseGlobalOptions(), ilChartDataPie\parseGlobalOptions(), and ilChartLegend\parseOptions().
Here is the caller graph for this function:| ilChart::setAutoResize | ( | bool | $a_value | ) |
Toggle auto-resizing on window resize/redraw.
Definition at line 178 of file class.ilChart.php.
| ilChart::setColors | ( | array | $a_values | ) |
Definition at line 117 of file class.ilChart.php.
| ilChart::setLegend | ( | ilChartLegend | $a_legend | ) |
Definition at line 112 of file class.ilChart.php.
Referenced by ilChartPie\parseGlobalOptions().
Here is the caller graph for this function:| ilChart::setShadow | ( | int | $a_value | ) |
Definition at line 165 of file class.ilChart.php.
Referenced by __construct().
Here is the caller graph for this function:| ilChart::setSize | ( | string | $a_x, |
| string | $a_y | ||
| ) |
Set chart size.
Definition at line 89 of file class.ilChart.php.
| ilChart::setStacked | ( | bool | $a_value | ) |
Definition at line 184 of file class.ilChart.php.
References ILIAS\UI\examples\Chart\Bar\Horizontal\stacked().
Here is the call graph for this function:
|
protected |
Definition at line 34 of file class.ilChart.php.
|
protected |
Definition at line 33 of file class.ilChart.php.
Referenced by getColors().
|
protected |
Definition at line 30 of file class.ilChart.php.
Referenced by addData().
|
protected |
Definition at line 29 of file class.ilChart.php.
|
protected |
Definition at line 27 of file class.ilChart.php.
|
protected |
Definition at line 31 of file class.ilChart.php.
Referenced by ilChartPie\parseGlobalOptions().
|
protected |
Definition at line 32 of file class.ilChart.php.
Referenced by getShadow().
|
protected |
Definition at line 35 of file class.ilChart.php.
Referenced by getHTML().
|
protected |
Definition at line 26 of file class.ilChart.php.
Referenced by ilChartPie\addCustomJS(), ilChartSpider\addCustomJS(), and initJS().
|
protected |
Definition at line 28 of file class.ilChart.php.
| const ilChart::TYPE_GRID = 1 |
Definition at line 22 of file class.ilChart.php.
Referenced by SurveyMetricQuestionEvaluation\getChart(), SurveyMatrixQuestionEvaluation\getChart(), SurveyQuestionEvaluation\getChart(), ilSessionStatisticsGUI\getChart(), ilLPObjectStatisticsTypesTableGUI\getGraph(), ilLPObjectStatisticsDailyTableGUI\getGraph(), ilLPObjectStatisticsTableGUI\getGraph(), ilLPObjectStatisticsLPTableGUI\getGraph(), and ilWikiStatGUI\renderGraph().
| const ilChart::TYPE_PIE = 2 |
Definition at line 23 of file class.ilChart.php.
| const ilChart::TYPE_SPIDER = 3 |
Definition at line 24 of file class.ilChart.php.