32 parent::parseData($a_data);
35 if (
$fill[
"color"] !=
"") {
42 $spider =
new stdClass();
43 $spider->active =
true;
45 $spider->highlight =
new stdClass();
46 $spider->highlight->mode =
"line";
49 $spider->legs =
new stdClass();
51 switch (count($a_chart->getLegLabels())) {
54 $spider->legs->legStartAngle = 10;
58 $spider->legs->legStartAngle = 0;
62 $spider->legs->data = array();
65 foreach ($a_chart->getLegLabels() as $l) {
70 $spider->legs->data[] =
$label;
72 $max_str_len = max($max_str_len, strlen($l));
76 if ($max_str_len > 60) {
78 } elseif ($max_str_len > 30) {
83 $spider->legs->font = $font_size .
"px Arial";
85 $spider->spiderSize = 0.7;
86 $spider->lineWidth = 1;
87 $spider->pointSize = 0;
89 $spider->connection =
new stdClass();
90 $spider->connection->width = 2;
92 $spider->legMin = 0.0000001;
93 $spider->legMax = $a_chart->getYAxisMax();
95 $a_options->series->spider = $spider;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
parseGlobalOptions(stdClass $a_options, ilChart $a_chart)
Convert (global) properties to flot config.
parseData(array &$a_data)
Convert data to flot config.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static renderColor(string $a_value, float $a_opacity=1)
Render html color code.
static shortenTextExtended(string $a_str, int $a_len, bool $a_dots=false, bool $a_next_blank=false, bool $a_keep_extension=false)