45 $this->type = (string)$a_value;
66 $this->hidden = (bool)$a_value;
87 $all = array(
"lines",
"bars",
"points",
"pie",
"spider");
88 if(in_array((
string)$a_value, $all))
102 $this->label = (string)$a_value;
125 $this->data[] = array($a_x, $a_y);
129 $this->data[] = $a_x;
150 $this->line_width = (int)$a_value;
170 $this->steps = (bool)$a_value;
190 public function setBarOptions($a_width, $a_align =
"center", $a_horizontal =
false)
192 $this->bar_width = (float)$a_width;
193 if(in_array((
string)$a_align, array(
"center",
"left")))
195 $this->bar_align = (string)$a_align;
197 $this->bar_horizontal = (bool)$a_horizontal;
207 return array(
"width" => $this->bar_width,
208 "align" => $this->bar_align,
209 "horizontal" => $this->bar_horizontal);
219 $this->radius = (int)$a_value;
238 public function setFill($a_value, $a_color = null)
240 $this->fill = $a_value;
243 $this->fill_color = $a_color;
254 return array(
"fill"=>$this->fill,
"color"=>$this->fill_color);