4 include_once
"Services/Chart/classes/class.ilChartData.php";
22 parent::parseData($a_data);
25 if (
$fill[
"color"] !=
"")
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;
Chart data spider series.
parseData(array &$a_data)
static shortenText($a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.
Abstract Chart generator base class.
Create styles array
The data for the language used.
static renderColor($a_value, $a_opacity=1)
Render html color code.
Abstract chart data series base class.
parseGlobalOptions(stdClass $a_options, ilChart $a_chart)