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