Chart data spider series.
More...
◆ getTypeString()
ilChartDataSpider::getTypeString |
( |
| ) |
|
|
protected |
◆ parseData()
ilChartDataSpider::parseData |
( |
array & |
$a_data | ) |
|
◆ parseGlobalOptions()
ilChartDataSpider::parseGlobalOptions |
( |
stdClass |
$a_options, |
|
|
ilChart |
$a_chart |
|
) |
| |
Definition at line 30 of file class.ilChartDataSpider.php.
References $l, ilChartData\$label, array, ilChart\renderColor(), and ilUtil\shortenText().
32 $spider =
new stdClass();
33 $spider->active =
true;
35 $spider->highlight =
new stdClass();
36 $spider->highlight->mode =
"line";
39 $spider->legs =
new stdClass();
41 switch (count($a_chart->getLegLabels())) {
44 $spider->legs->legStartAngle = 10;
48 $spider->legs->legStartAngle = 0;
52 $spider->legs->data =
array();
55 foreach ($a_chart->getLegLabels() as
$l) {
60 $spider->legs->data[] =
$label;
62 $max_str_len = max($max_str_len, strlen(
$l));
66 if ($max_str_len > 60) {
68 } elseif ($max_str_len > 30) {
73 $spider->legs->font = $font_size .
"px Arial";
75 $spider->spiderSize = 0.7;
76 $spider->lineWidth = 1;
77 $spider->pointSize = 0;
79 $spider->connection =
new StdClass();
80 $spider->connection->width = 2;
82 $spider->legMin = 0.0000001;
83 $spider->legMax = $a_chart->getYAxisMax();
85 $a_options->series->spider = $spider;
static shortenText( $a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.
Create styles array
The data for the language used.
static renderColor($a_value, $a_opacity=1)
Render html color code.
The documentation for this class was generated from the following file: