4 include_once
"Services/Chart/classes/class.ilChartData.php";
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;