ILIAS
Release_5_0_x_branch Revision 61816
|
Abstract Chart generator base class. More...
Public Member Functions | |
getDataInstance ($a_type=null) | |
Get data series instance. | |
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. | |
setColors ($a_values) | |
Set colors. | |
getColors () | |
Get colors. | |
setShadow ($a_value) | |
Set shadow. | |
getShadow () | |
Get shadow. | |
setAutoResize ($a_value) | |
Toggle auto-resizing on window resize/redraw. | |
parseGlobalOptions (stdClass $a_options) | |
Convert (global) properties to flot config. | |
getHTML () | |
Render. |
Static Public Member Functions | |
static | getInstanceByType ($a_type, $a_id) |
Get type instance. | |
static | isValidColor ($a_value) |
Validate html color code. | |
static | renderColor ($a_value, $a_opacity=1) |
Render html color code. |
Data Fields | |
const | TYPE_GRID = 1 |
const | TYPE_PIE = 2 |
const | TYPE_SPIDER = 3 |
Protected Member Functions | |
__construct ($a_id) | |
Constructor. | |
isValidDataType (ilChartData $a_series) | |
Validate data series. | |
isValid () | |
Basic validation. | |
initJS () | |
Init JS script files. | |
addCustomJS () | |
Add type-specific JS script. |
Protected Attributes | |
$id | |
$width | |
$height | |
$data | |
$legend | |
$shadow | |
$colors | |
$auto_resize |
|
protected |
Constructor.
string | $a_id |
Reimplemented in ilChartGrid.
Definition at line 33 of file class.ilChart.php.
References setShadow().
|
protected |
Add type-specific JS script.
Reimplemented in ilChartSpider, and ilChartPie.
Definition at line 261 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 113 of file class.ilChart.php.
References $data, and isValidDataType().
ilChart::getColors | ( | ) |
Get colors.
Definition at line 157 of file class.ilChart.php.
References $colors.
Referenced by getHTML().
|
abstract |
Get data series instance.
Reimplemented in ilChartGrid, ilChartSpider, and ilChartPie.
ilChart::getHTML | ( | ) |
Render.
Definition at line 279 of file class.ilChart.php.
References $colors, $ret, getColors(), getShadow(), initJS(), isValid(), parseGlobalOptions(), and renderColor().
|
static |
Get type instance.
int | $a_type | |
string | $a_id |
Definition at line 48 of file class.ilChart.php.
Referenced by ilPollBlockGUI\fillRow(), ilSessionStatisticsGUI\getChart(), ilPersonalSkillsGUI\getGapAnalysisHTML(), ilLPObjectStatisticsDailyTableGUI\getGraph(), ilLPObjectStatisticsTableGUI\getGraph(), ilLPObjectStatisticsTypesTableGUI\getGraph(), ilLPObjectStatisticsLPTableGUI\getGraph(), SurveyMetricQuestionGUI\renderChart(), SurveyQuestionGUI\renderChart(), and ilWikiStatGUI\renderGraph().
ilChart::getShadow | ( | ) |
Get shadow.
Definition at line 221 of file class.ilChart.php.
References $shadow.
Referenced by getHTML().
|
protected |
Init JS script files.
Definition at line 239 of file class.ilChart.php.
References $tpl, addCustomJS(), and iljQueryUtil\initjQuery().
Referenced by getHTML().
|
protected |
Basic validation.
Definition at line 85 of file class.ilChart.php.
Referenced by getHTML().
|
static |
Validate html color code.
string | $a_value |
Definition at line 168 of file class.ilChart.php.
Referenced by ilChartLegend\setBackground(), ilChartData\setFill(), and ilChartLegend\setLabelBorder().
|
abstractprotected |
Validate data series.
Reimplemented in ilChartGrid, ilChartSpider, and ilChartPie.
Referenced by addData().
ilChart::parseGlobalOptions | ( | stdClass | $a_options | ) |
Convert (global) properties to flot config.
object | $a_options |
Reimplemented in ilChartGrid, ilChartSpider, and ilChartPie.
Definition at line 271 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 getHTML(), 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 231 of file class.ilChart.php.
ilChart::setColors | ( | $a_values | ) |
Set colors.
array | $a_values |
Definition at line 141 of file class.ilChart.php.
ilChart::setLegend | ( | ilChartLegend | $a_legend | ) |
Set chart legend.
ilChartLegend | $a_legend |
Definition at line 131 of file class.ilChart.php.
Referenced by ilChartPie\parseGlobalOptions().
ilChart::setShadow | ( | $a_value | ) |
Set shadow.
int | $a_value |
Definition at line 211 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 100 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 16 of file class.ilChart.php.
const ilChart::TYPE_GRID = 1 |
Definition at line 24 of file class.ilChart.php.
Referenced by ilSessionStatisticsGUI\getChart(), ilLPObjectStatisticsDailyTableGUI\getGraph(), ilLPObjectStatisticsTableGUI\getGraph(), ilLPObjectStatisticsTypesTableGUI\getGraph(), ilLPObjectStatisticsLPTableGUI\getGraph(), SurveyMetricQuestionGUI\renderChart(), SurveyQuestionGUI\renderChart(), and ilWikiStatGUI\renderGraph().
const ilChart::TYPE_PIE = 2 |
Definition at line 25 of file class.ilChart.php.
const ilChart::TYPE_SPIDER = 3 |
Definition at line 26 of file class.ilChart.php.
Referenced by ilPersonalSkillsGUI\getGapAnalysisHTML().