ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Abstract Chart generator base class. More...
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 | |
$tpl | |
$id | |
$width | |
$height | |
$data | |
$legend | |
$shadow | |
$colors | |
$auto_resize | |
$stacked | |
|
protected |
Constructor.
string | $a_id |
Definition at line 39 of file class.ilChart.php.
References $DIC, array, data, and setShadow().
|
protected |
Add type-specific JS script.
Definition at line 270 of file class.ilChart.php.
Referenced by initJS().
ilChart::addData | ( | ilChartData | $a_series, |
$a_idx = null |
|||
) |
Add data series.
ilChartData | $a_series | |
mixed | $a_id |
Definition at line 120 of file class.ilChart.php.
References $data, data, and isValidDataType().
ilChart::getColors | ( | ) |
Get colors.
Definition at line 160 of file class.ilChart.php.
References $colors.
Referenced by getHTML().
|
abstract |
Get data series instance.
Referenced by getInstanceByType().
ilChart::getHTML | ( | ) |
Render.
Definition at line 286 of file class.ilChart.php.
References $chart, $colors, $ret, $series, array, data, getColors(), getShadow(), initJS(), isValid(), and parseGlobalOptions().
|
static |
Get type instance.
int | $a_type | |
string | $a_id |
Definition at line 57 of file class.ilChart.php.
References $a_type, getDataInstance(), and isValidDataType().
Referenced by ilPollBlockGUI\fillRow(), SurveyMetricQuestionEvaluation\getChart(), SurveyMatrixQuestionEvaluation\getChart(), SurveyQuestionEvaluation\getChart(), ilSessionStatisticsGUI\getChart(), ilPersonalSkillsGUI\getGapAnalysisHTML(), ilLPObjectStatisticsTypesTableGUI\getGraph(), ilLPObjectStatisticsDailyTableGUI\getGraph(), ilLPObjectStatisticsTableGUI\getGraph(), ilLPObjectStatisticsLPTableGUI\getGraph(), and ilWikiStatGUI\renderGraph().
ilChart::getShadow | ( | ) |
Get shadow.
Definition at line 217 of file class.ilChart.php.
References $shadow.
Referenced by getHTML().
|
protected |
Init JS script files.
Definition at line 245 of file class.ilChart.php.
References $tpl, addCustomJS(), and iljQueryUtil\initjQuery().
Referenced by getHTML().
|
protected |
Basic validation.
Definition at line 93 of file class.ilChart.php.
References data.
Referenced by getHTML().
|
static |
Validate html color code.
string | $a_value |
Definition at line 171 of file class.ilChart.php.
Referenced by ilChartLegend\setBackground(), ilChartData\setFill(), and ilChartLegend\setLabelBorder().
|
abstractprotected |
Validate data series.
Referenced by addData(), and getInstanceByType().
ilChart::parseGlobalOptions | ( | stdClass | $a_options | ) |
Convert (global) properties to flot config.
object | $a_options |
Definition at line 279 of file class.ilChart.php.
Referenced by getHTML().
|
static |
Render html color code.
string | $a_value | |
float | $a_opacity |
Definition at line 187 of file class.ilChart.php.
Referenced by ilChartDataSpider\parseData(), ilChartData\parseData(), ilChartDataSpider\parseGlobalOptions(), ilChartSpider\parseGlobalOptions(), ilChartDataPie\parseGlobalOptions(), and ilChartLegend\parseOptions().
ilChart::setAutoResize | ( | $a_value | ) |
Toggle auto-resizing on window resize/redraw.
bool | $a_value |
Definition at line 227 of file class.ilChart.php.
ilChart::setColors | ( | $a_values | ) |
ilChart::setLegend | ( | ilChartLegend | $a_legend | ) |
Set chart legend.
ilChartLegend | $a_legend |
Definition at line 136 of file class.ilChart.php.
Referenced by ilChartPie\parseGlobalOptions().
ilChart::setShadow | ( | $a_value | ) |
Set shadow.
int | $a_value |
Definition at line 207 of file class.ilChart.php.
Referenced by __construct().
ilChart::setSize | ( | $a_x, | |
$a_y | |||
) |
ilChart::setStacked | ( | $a_value | ) |
|
protected |
Definition at line 27 of file class.ilChart.php.
|
protected |
Definition at line 26 of file class.ilChart.php.
Referenced by getColors(), and getHTML().
|
protected |
Definition at line 23 of file class.ilChart.php.
Referenced by addData().
|
protected |
Definition at line 22 of file class.ilChart.php.
|
protected |
Definition at line 20 of file class.ilChart.php.
|
protected |
Definition at line 24 of file class.ilChart.php.
Referenced by ilChartPie\parseGlobalOptions().
|
protected |
Definition at line 25 of file class.ilChart.php.
Referenced by getShadow().
|
protected |
Definition at line 28 of file class.ilChart.php.
|
protected |
Definition at line 18 of file class.ilChart.php.
Referenced by ilChartPie\addCustomJS(), ilChartSpider\addCustomJS(), and initJS().
|
protected |
Definition at line 21 of file class.ilChart.php.
const ilChart::TYPE_GRID = 1 |
Definition at line 30 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 31 of file class.ilChart.php.
const ilChart::TYPE_SPIDER = 3 |
Definition at line 32 of file class.ilChart.php.
Referenced by ilPersonalSkillsGUI\getGapAnalysisHTML().