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 31 of file class.ilChartDataSpider.php.
References $l, ilChartData\$label, array, ilChart\renderColor(), and ilUtil\shortenText().
33 $spider =
new stdClass();
34 $spider->active =
true;
36 $spider->highlight =
new stdClass();
37 $spider->highlight->mode =
"line";
40 $spider->legs =
new stdClass();
42 switch (count($a_chart->getLegLabels()))
46 $spider->legs->legStartAngle = 10;
50 $spider->legs->legStartAngle = 0;
54 $spider->legs->data =
array();
57 foreach ($a_chart->getLegLabels() as
$l)
63 $spider->legs->data[] =
$label;
65 $max_str_len = max($max_str_len, strlen(
$l));
69 if ($max_str_len > 60)
73 else if ($max_str_len > 30)
81 $spider->legs->font = $font_size.
"px Arial";
83 $spider->spiderSize = 0.7;
84 $spider->lineWidth = 1;
85 $spider->pointSize = 0;
87 $spider->connection =
new StdClass();
88 $spider->connection->width = 2;
90 $spider->legMin = 0.0000001;
91 $spider->legMax = $a_chart->getYAxisMax();
93 $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: