4 include_once
"Services/Chart/classes/class.ilChartData.php";
30 $this->line_width = (int) $a_value;
53 $this->label_radius = $a_value;
64 public function addPoint($a_value, $a_caption = null)
66 $this->
data[] = array($a_value, $a_caption);
71 foreach ($this->
data as $slice) {
73 $series->label = str_replace(
"\"",
"\\\"", $slice[1]);
77 $series->label .=
" (" . $slice[0] .
"%)";
80 $series->data = $slice[0];
92 $a_options->series->pie =
new stdClass();
93 $a_options->series->pie->show =
true;
99 if (
$fill[
"fill"] || $width) {
100 $a_options->series->pie->stroke =
new stdClass;
102 $a_options->series->pie->stroke->width = $width;
104 if (
$fill[
"color"]) {
111 $a_options->series->pie->label =
new stdClass;
112 $a_options->series->pie->label->background =
new stdClass;
113 $a_options->series->pie->radius = 1;
114 $a_options->series->pie->label->radius = $radius;
115 $a_options->series->pie->label->show =
true;
116 $a_options->series->pie->label->background->color =
"#444";
117 $a_options->series->pie->label->background->opacity = 0.8;
setLabelRadius($a_value)
Sets the radius at which to place the labels.
Abstract Chart generator base class.
parseData(array &$a_data)
static renderColor($a_value, $a_opacity=1)
Render html color code.
Abstract chart data series base class.
getLineWidth()
Get line width.
addPoint($a_value, $a_caption=null)
parseGlobalOptions(stdClass $a_options, ilChart $a_chart)
setLineWidth($a_value)
Set line width.